CN106157075A - The generation method and apparatus of application data - Google Patents
The generation method and apparatus of application data Download PDFInfo
- Publication number
- CN106157075A CN106157075A CN201510158933.8A CN201510158933A CN106157075A CN 106157075 A CN106157075 A CN 106157075A CN 201510158933 A CN201510158933 A CN 201510158933A CN 106157075 A CN106157075 A CN 106157075A
- Authority
- CN
- China
- Prior art keywords
- random sample
- numerical value
- application data
- data
- chosen
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
Landscapes
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Development Economics (AREA)
- Finance (AREA)
- Economics (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Marketing (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application discloses a kind of generation method applying data.The method includes: generates one group and meets the random sample being distributed the most very much;According to the order carrying out to center choosing from the two ends being distributed the most very much, choose N number of random sample, so that the numerical value summation of the N number of random sample finally chosen is M;With the numerical value of N number of random sample chosen for applying the numerical value of data, generate N number of application data;Wherein, the number of the random sample of generation is the fewest, and the numerical value of application data is the most uniform, the number of the random sample generated is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data, M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.By the application, the problem that the user's experience that can solve to cause due to the uncontrollability of numerical value of application data in prior art reduces.The embodiment of the present application also discloses a kind of generating means applying data.
Description
Technical field
The application relates to computer application field, particularly relates to apply the generation method and apparatus of data.
Background technology
At present, the various application products of the Internet exist the application that such a is novel.This application is first
Produce multiple application data, and, each application data has respective numerical value, will produce the most again
Raw multiple application data are distributed to multiple different user and use.
One of which distributes mode, and the user of this application first sets the application needing to distribute in this application
Total number of data and total value, but do not set the concrete numerical value of each application data.Generating
During application data, the numerical value of each application data is all this application stochastic generation, and the size of numerical value is not
Determine.For getting the user of application data, its application data that can get how much numerical value are complete
It is unknown entirely, it may be possible to the application data of a big numerical value, it is also possible to be the application of a fractional value
Data.
A kind of concrete manifestation form of this application is exactly the APP for distributing electronic gift.Wherein, electronics
Gift includes but not limited to electronics red packet.Such as, the operator of e-commerce website can increase in its APP
Add electronics red packet distributes function, and by this function, the operator of e-commerce website can be to its user
Distribute electronics red packet, or, electricity can be distributed mutually by this function between the user of e-commerce website
Sub-red packet.
As a example by electronics red packet, a kind of electronics red packet distributes in mode wherein, as already mentioned previously,
The user distributing electronics red packet only sets total number and the total amount of electronics red packet, but does not set each
The concrete amount of money of individual electronics red packet, and the amount of money of each the electronics red packet ultimately generated also is different.
For each user getting electronics red packet, its electronics red packet that can get how much amount of money is entirely
Unknown, it may be possible to the red packet of a big amount of money, it is also possible to the red packet of a little amount of money.
During realizing the application, inventors herein have recognized that in prior art, at least existence is as follows
Problem: when this application generates multiple application data, the numerical value of application data is randomly generated, and it can
Can generate the biggest application data of numerical value and the least application data of multiple numerical value, it is also possible to
The application data that multiple numeric ratio is average can be generated.It is to say, the numerical value of application data is likely to be
The most uneven, it is also possible to be the most uniform.That is, the uniformity of the numerical value of application data is not
Controllable.But, for developing the operator of the e-commerce website of this application function, utilize
The application data that this random fashion generates are not the most its desired application data generated.Such as,
It wishes to generate smaller application the data of one group of numerical value uniformity, but actually generate is one group of numerical value
The application data that the uniformity is bigger;Or, it wishes to generate the application that one group of numerical value uniformity is bigger
Data, but actually generate is the smaller application data of one group of numerical value uniformity.
Summary of the invention
In order to solve above-mentioned technical problem, the embodiment of the present application provides generation method and the dress of application data
Put, cannot meet with solve prior art causes owing to the uniformity of numerical value of application data is uncontrollable
The problem of the demand of the operator of e-commerce website.
The embodiment of the present application discloses following technical scheme:
A kind of generation method applying data, including:
Generate one group and meet the random sample being distributed the most very much;
According to the order carrying out to center choosing from the two ends being distributed the most very much, choose N number of random sample, with
The numerical value summation making the N number of random sample finally chosen is M;
With the numerical value of N number of random sample chosen for applying the numerical value of data, generate N number of application data;
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
Preferably, when the numerical value of described application data has smallest limit value and maximum upper limit, described
The N number of random sample finally chosen be numerical value meet described smallest limit value and maximum upper limit with press proof
This.
Preferably, described according to the order carrying out to center choosing from the two ends being distributed the most very much, choose N number of
Random sample, so that the numerical value summation of the N number of random sample chosen is user's desired application data
Total value, including:
N-1 random sample is chosen according to the order carrying out to center from the two ends being distributed the most very much choosing, and
The numerical value of N-1 the random sample chosen meets described smallest limit value and maximum upper limit, so that using
Difference between the total value of the desired application in family data and the numerical value summation of N-1 random sample chosen
Meet described smallest limit value and maximum upper limit;
Choosing last random sample, the numerical value of last random sample described is that user is desired answers
By the difference between the total value of data and the numerical value summation of N-1 random sample chosen.
Preferably, described generation one group meets the random sample being distributed the most very much, including:
Generate one group of random number;
Described one group of random number is transformed to one group and meets the random sample being distributed the most very much.
Preferably, described method also includes:
In response to getting the request applying data, from the N number of application data generated, randomly select one not
Distribution application data and be allocated.
A kind of generating means applying data, including:
Sample generation unit, meets, for generating one group, the random sample being distributed the most very much;
Unit chosen by sample, for according to the order carrying out to center choosing from the two ends being distributed the most very much, choosing
Take N number of random sample, so that the numerical value summation of the N number of random sample finally chosen is M;
Electronic gift signal generating unit, the gold that the numerical value for the N number of random sample to choose is application data
Volume, generates N number of application data;
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
Preferably, when the numerical value of described application data has smallest limit value and maximum upper limit, described
The N number of random sample finally chosen be numerical value meet described smallest limit value and maximum upper limit with press proof
This.
Preferably, described sample is chosen unit and is included:
First chooses subelement, for selecting according to the order carrying out to center from the two ends being distributed the most very much choosing
Take N-1 random sample, and the numerical value of N-1 the random sample chosen meet described smallest limit value and
Maximum upper limit, so that the total value of user's desired application data and N-1 the random sample chosen
Numerical value summation between difference meet described smallest limit value and maximum upper limit;
Second chooses subelement, is used for choosing last random sample, last random sample described
The numerical value summation of the total value that numerical value is user's desired application data and N-1 the random sample chosen
Between difference.
Preferably, described sample generation unit includes:
Generating random number subelement, for generating one group of random number;
Varitron unit, for described one group of random number is transformed to one group meet be distributed the most very much with press proof
This.
Preferably, described device also includes:
Application data allocation unit, in response to getting the request applying data, N number of from generation should
With data randomly selecting unappropriated application data and being allocated.
As can be seen from the above-described embodiment, compared with prior art, the advantage of the application is:
In this application, build one group and meet the random sample being distributed the most very much, according to random sample the most too
Distribution characteristics in distribution, chooses random sample according to from the two ends being distributed the most very much to the order at center, and
The numerical value that the numerical value of the random sample to choose is application data.And when determining application by such mode
During the numerical value of data, it is possible to utilize the number of the random sample generated to control to apply the numerical value of data
The uniformity.Wherein, the number of the random sample of generation is the fewest, the numerical value difference of the random sample chosen
Property the least, and apply the numerical value of data the most uniform, be finally likely to produce numeric ratio is closer to should
Use data.Otherwise, the number of the random sample of generation is the most, the numerical value difference of the random sample chosen
Property the biggest, and apply the numerical value of data the most irregular, be finally likely to produce that numerical value is very big and number
It is worth the least application data.It is thereby achieved that the controllability of the uniformity of the numerical value of application data, from
And the most just solve in prior art due to the uniformity of numerical value of application data uncontrollable caused cannot
The problem meeting the demand of the operator of e-commerce website.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to reality
Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below,
Accompanying drawing in description is only some embodiments of the application, for those of ordinary skill in the art,
On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 schematically shows the exemplary application that presently filed embodiment can be implemented within
Scene;
Fig. 2 schematically shows the stream of a kind of generation method applying data according to the embodiment of the present application
Cheng Tu;
Fig. 3 schematically shows the generation according to the embodiment of the present application and meets the random sample being distributed the most very much
The flow chart of method;
Fig. 4 schematically shows one group of random sample according to the embodiment of the present application in the most too distribution
Distribution schematic diagram;
Fig. 5 schematically shows another group random sample according to the embodiment of the present application in the most too distribution
Distribution schematic diagram;
Fig. 6 schematically shows the schematic diagram of a kind of the most too distribution curve according to the embodiment of the present application;
Fig. 7 schematically shows the schematic diagram of the most too distribution curve of the another kind according to the embodiment of the present application;
Fig. 8 schematically shows the knot of a kind of generating means applying data according to the embodiment of the present application
Structure frame diagram;
Fig. 9 diagrammatically illustrates the knot of the generating means of the another kind of application data according to the embodiment of the present application
Structure frame diagram.
Detailed description of the invention
Schematically showing presently filed embodiment with reference first to Fig. 1, Fig. 1 can be real wherein
The exemplary application scene executed.Wherein, user A and user B is respectively on its respective electronic equipment
It is mounted with to apply the client (i.e. client 10 and client 20) of APP, this application APP collects
Become to realize electronics red packet and distribute and got function, and, the client account of user A and user A
Bank card account binding.When user A wants by client 10 to many including user B
When position good friend distributes electronics red packet, user A opens client 10, and specifies electricity in client 10
Total number of sub-red packet and total amount, client 10 sends red packet to the server 30 of application APP
Generation request 11, carries total number of the electronics red packet that user specifies and total in this request 11
The amount of money.As response, to the server 40 of bank, (server 40 is the silver of user A to server 30
Server belonging to row card account) send transfer request 31, in this request 31, carry user A
Bank card account and transfer amounts (that is, the total amount of electronics red packet), server 40 according to please
Ask 31 from the bank card account of user A, money transfer is proceeded to the Third-party payment that server 40 is supported
Platform, and return to server 30 and transfer accounts response 41, and indicate in this response 41 and transfer accounts successfully.
It is red that total number of the electronics red packet that server 30 is specified according to user and total amount generate one group of electronics
Bag, and be that this group electronics red packet generates a red packet mark X, the return of the most backward client 10 is carried red
The red packet of bag mark X generates response 32.Red packet is identified X and notifies to user B, user by user A
B opens client 20, and (this red packet mark X is one to input red packet mark X in client 20
Group numeral numbering) or click on red packet mark X (this red packet mark X is a link), client
20 will send red packet to server 30 gets request 21, carries red packet mark X in this request 21,
As response, server 30 randomly selects one from one group of electronics red packet indicated by red packet mark X
Individual electronics red packet, and return red packet to client 20 and get response 32, carry in this response 32
The amount of money for the electronics red packet that user B chooses.Electronic equipment can be PC, it is also possible to be mobile setting
Standby, such as, mobile phone or panel computer etc..Server 30 and 40 can be Web server, it is possible to
To be other kinds of server, such as APP server.It will be understood by those skilled in the art that figure
Schematic diagram shown in 1 is only the example that presently filed embodiment can be achieved wherein.
The range of application of the application embodiment is not limited by any aspect of this framework.Such as, except can
Outside in existing application APP, integrated electronic red packet distributes and gets function, it is also possible to by list
Only application APP realizes electronics red packet and distributes and get function.It addition, said method is except fitting
Outside electronics red packet, it is applied equally to other electronics being distributed by Internet technology and getting
Gift.
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the application, feature and advantage to become apparent from
The embodiment of the present application is described in detail.
Embodiment of the method
Refer to Fig. 2, Fig. 2 and schematically show a kind of life applying data according to the embodiment of the present application
The flow chart of one-tenth method, such as, the method can be performed by server 30, and the method such as includes following
Step:
Step 201: generate one group and meet the random sample being distributed the most very much.
In this application, as it is shown on figure 3, above-mentioned steps 201 may include that
Step 2011: generate one group of random number;
Step 2012: described one group of random number is transformed to one group and meets the random sample being distributed the most very much.
Wherein it is possible to use any one generating random number mode to generate one group of random number, then can adopt
By any one the most too distribution transformation method, this group random number is transformed to what one group of conformance with standard was distributed the most very much
Random sample.
For example, it is possible to use conventional Box-Muller to convert one group of random number between 0 and 1
It is transformed to one group and meets the random sample being distributed the most very much.Certainly, convert for Box-Muller, need raw
Become one group of random number between 0 and 1, or, after generating one group of random number, by random for this group
Number conversion is the value between 0 and 1.
Wherein, in Box-Muller converts, it is assumed that to generate 10 random between 0 and 1
Number:
x1、x2、x3、x4、x5
y1、y2、y3、y4、y5
Then calculate:
And z1..z10 is 10 obedience standards and is distributed the most very much the random sample of N (0,1).
Certainly, by the way, it is also possible to obtain that greater number of conformance with standard is distributed the most very much is random
Sample.After obtaining the random sample that conformance with standard is distributed the most very much, can be obtained by μ+σ × z process
Meeting the random sample being distributed the most very much N (μ, σ), wherein, z is the random sample that standard is distributed the most very much N (0,1).
In this application, being distributed the most very much the average value mu=M/N of N (μ, σ), M is desired application data
Total value, N is total number of desired application data.
Step 202: according to the order carrying out to center choosing from the two ends being distributed the most very much, choose N number of with
Press proof basis, so that the numerical value summation of the N number of random sample finally chosen is M.
Step 203;With the numerical value of N number of random sample chosen for applying the numerical value of data, generate N number of
Application data.
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
It should be understood that in this application, when μ and σ being distributed the most very much immobilizes, generation random
The number of sample is the most, if choosing random sample from the two ends being distributed the most very much to center, finally chooses
To random sample be likely to compare and concentrate on the two ends of the most too distribution curve, as shown in Figure 4.It is visible,
The number of the random sample generated is the most, and the possible diversity of the numerical value of the random sample chosen is the biggest, when
During using the numerical value of random sample chosen as the numerical value of application data, the numerical value of application data is also got over
Irregular, i.e. to be finally likely to produce the application that data are very big and numerical value is the least.On the contrary, generate
The number of random sample the fewest, if choosing random sample from the two ends being distributed the most very much to center,
The random sample chosen eventually is likely to be evenly distributed on whole the most too distribution curve, as shown in Figure 5.
Visible, the number of the random sample of generation is the fewest, and the numerical value of the random sample chosen may diversity be got over
Little, when the numerical value of the random sample that will choose is as the numerical value applying data, the numerical value of application data
The most uniform, i.e. to be finally likely to produce the application that numeric ratio is closer to.Therefore, in this application,
It it is the uniformity utilizing the number of the random sample generated to control to apply the numerical value of data.
Wherein, application data can be any one form, can by the electronic gift of the Internet transmission,
The numerical value of application data is the amount of money of electronic gift.Such as, application data can be electronics red packet.
It should be noted that the uniformity of the numerical value of data can also be controlled to apply by adjusting σ value.Its
In, when the number of the random sample generated immobilizes, σ is the biggest, and the most too distribution more dispersion, such as Fig. 6
Shown in, choosing in the case of random sample from the two ends being distributed the most very much to center, finally choose with
The press proof numerical difference opposite sex originally is the biggest, i.e. the numerical value of application data is the most irregular;σ is the least, is distributed the most very much
More concentrate, as it is shown in fig. 7, choosing in the case of random sample from the two ends being distributed the most very much to center,
The numerical difference opposite sex of the random sample finally chosen is the least, i.e. the numerical value of application data is the most uniform.
But, it is contemplated that if σ value controls bad, can cause being difficult to even cannot select numerical value summation can
To reach the random sample of the total value of desired application data.Therefore, in this application, σ value is set
It is a fixed value, but utilizes the number of random sample generated to control to apply numerical value equal of data
Evenness.And the application does not the most limit the concrete numerical value of σ, as long as setting it to a fixed value.
Such as, σ=0.1.
It addition, in this application, it is possible to use N × sc+1 represents the number of the random sample of generation, wherein,
N is total number of desired application data.Obviously, the number of the random sample of generation is by the size of sc certainly
Fixed, sc is the biggest, and the number of the random sample of generation is the most, otherwise, sc is the least, the random sample of generation
Number the fewest.In concrete application, the random sample that can control to generate by the size of regulation sc
Number.
Additionally, when according to when choosing random sample from the two ends being distributed the most very much to the order at center, the application
The most not limiting and specifically choose which random sample, the numerical value of the N number of random sample finally chosen is total
With the total value for desired application data.
Such as, describe for convenience, it is assumed that need to select 6 random samples, as shown in Figure 4, can
With first choose the most too distribution in left and right two borderline random samples 1 and 2, and judge choose at present with
Whether this numerical value summation of 1 and 2 of press proof exceeds the total value of desired application data, without exceeding,
Continue to choose the random sample 3 and 4 closest with random sample 1 and 2, and judge to choose at present random
Whether the numerical value summation of sample 1,2,3 and 4 exceeds the total value of desired application data, if still
Without departing from, continue to choose the random sample 5 and 6 closest with random sample 3 and 4, and judge at present
Whether the numerical value summation of the random sample 1,2,3,4,5 and 6 chosen is beyond desired application data
Total value, if it was exceeded, first discard random sample 6, and chooses random sample 7 (or with press proof
These are 8 years old), and judge the random sample 1,2,3,4,5 and 7 (or random sample 8) chosen at present
Whether numerical value summation exceeds the total value of desired application data, without exceeding, and random sample 1,
2, the numerical value summation of 3,4,5 and 7 is just equal to the total value of desired application data, stops choosing.
In addition, it is contemplated that may wish to the numerical definiteness of each application data at specific numerical value model
Within enclosing, and this scope can not be exceeded.Therefore, in a preferred implementation of the application, when answering
When having smallest limit value and maximum upper limit with the numerical value of data, the N number of random sample finally chosen is
Numerical value meets the random sample of smallest limit value and maximum upper limit.
In order to better ensure that the N number of random sample chosen is that numerical value meets smallest limit value and maximum upper limit
The random sample of value, in the preferred implementation of the application, can be first according to from being distributed the most very much
The order that two ends carry out choosing to center chooses N-1 random sample, and N-1 the random sample chosen
Numerical value meet described smallest limit value and maximum upper limit, so that the total value of desired application data
And the difference between the numerical value summation of N-1 the random sample chosen meets described smallest limit value and maximum
Higher limit;Then choosing last random sample, the numerical value of last random sample is desired answering
By the difference between the total value of data and the numerical value summation of N-1 random sample chosen.
In another preferred implementation of the application, said method also includes: in response to getting application
The request of data, randomly selects unappropriated application data from the N number of application data generated and goes forward side by side
Row distribution.
It should be understood that due to each application data can only be allocated once, therefore, once some
Application data be allocated, and cannot carry out duplicate allocation again.
As can be seen from the above-described embodiment, compared with prior art, the advantage of the application is:
In this application, build one group and meet the random sample being distributed the most very much, according to random sample the most too
Distribution characteristics in distribution, chooses random sample according to from the two ends being distributed the most very much to the order at center, and
The numerical value that the numerical value of the random sample to choose is application data.And should when being determined by such mode
During with the numerical value of data, it is possible to utilize the number of the random sample generated to control to apply the numerical value of data
The uniformity.It is thereby achieved that the controllability of the uniformity of the numerical value of application data, thus also just solve
Prior art caused cannot meet open electronics owing to the uniformity of the numerical value of application data is uncontrollable
The problem of the demand of the operator of business web site.
Device embodiment
Corresponding with the generation method of above-mentioned application data, the embodiment of the present application additionally provides application data
Generating means.Refer to Fig. 8, Fig. 8 and schematically show a kind of application number according to the embodiment of the present application
According to the structural framing figure of generating means, this device includes that unit chosen by sample generation unit 801, sample
802 and application data generating unit 803.Operation principle below in conjunction with this device is further described inside it
Structure and annexation.
Sample generation unit 801, meets, for generating one group, the random sample being distributed the most very much;
Unit 802 chosen by sample, is used for according to the order carrying out to center choosing from the two ends being distributed the most very much,
Choose N number of random sample, so that the numerical value summation of the N number of random sample finally chosen is M;
Application data generating unit 803, is used for the numerical value of the N number of random sample to choose for applying data
Numerical value, generate N number of application data;
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
In a preferred implementation of the application, when the numerical value of described application data has smallest limit
When value and maximum upper limit, the described N number of random sample finally chosen is that numerical value meets described smallest limit
Value and the random sample of maximum upper limit.
In another preferred implementation of the application, sample is chosen unit 802 and is included:
First chooses subelement, for selecting according to the order carrying out to center from the two ends being distributed the most very much choosing
Take N-1 random sample, and the numerical value of N-1 the random sample chosen meet described smallest limit value and
Maximum upper limit, so that the total value of user's desired application data is individual with the N-1 chosen with press proof
Difference between this numerical value summation meets described smallest limit value and maximum upper limit;
Second chooses subelement, is used for choosing last random sample, last random sample described
The numerical value summation of the total value that numerical value is user's desired application data and N-1 the random sample chosen
Between difference.
In another preferred implementation of the application, sample generation unit 801 includes:
Generating random number subelement, for generating one group of random number;
Varitron unit, for described one group of random number is transformed to one group meet be distributed the most very much with press proof
This.
In another preferred implementation of the application, as it is shown in figure 9, this device also includes:
Application data allocation unit 804, in response to getting the request applying data, from the N generated
Individual application data randomly select unappropriated application data and is allocated.
As can be seen from the above-described embodiment, compared with prior art, the advantage of the application is:
In this application, build one group and meet the random sample being distributed the most very much, according to random sample the most too
Distribution characteristics in distribution, chooses random sample according to from the two ends being distributed the most very much to the order at center, and
The numerical value that the numerical value of the random sample to choose is application data.And when determining application by such mode
During the numerical value of data, it is possible to utilize the number of the random sample generated to control to apply the numerical value of data
The uniformity.It is thereby achieved that the controllability of the uniformity of the numerical value of application data, thus the most just solve
Prior art caused cannot meet ecommerce owing to the uniformity of numerical value of application data is uncontrollable
The problem of the demand of the operator of website.
The technical staff in described field is it can be understood that arrive, for convenience of description and succinctly, above-mentioned
The specific works process of the system, device and the unit that describe, be referred in preceding method embodiment is right
Answer process, do not repeat them here.
In several embodiments provided herein, it should be understood that disclosed system, device and
Method, can realize by another way.Such as, the device embodiment arrived described above is only
Schematically, such as, the division of described unit, it is only a kind of logic function and divides, actual when realizing
Can have other dividing mode, the most multiple unit or assembly can in conjunction with or be desirably integrated into another
System, or some features can ignore, or do not perform.Another point, shown or discussed each other
Coupling direct-coupling or communication connection can be the INDIRECT COUPLING by some interfaces, device or unit
Or communication connection, can be being electrical, mechanical or other form.
The described unit that illustrates as separating component can be or can also be physically separate, as
The parts that unit shows can be or may not be physical location, i.e. may be located at a place, or
Person can also be distributed on multiple NE.Can select according to the actual needs part therein or
All unit realizes the purpose of the present embodiment scheme.
It addition, each functional unit in each embodiment of the application can be integrated in a processing unit,
Can also be that unit is individually physically present, it is also possible to two or more unit are integrated in a list
In unit.Above-mentioned integrated unit both can realize to use the form of hardware, can use SFU software functional unit
Form realize.
It should be noted that one of ordinary skill in the art will appreciate that and realize in above-described embodiment method
All or part of flow process, can be by computer program and completes to instruct relevant hardware, described
Program can be stored in a computer read/write memory medium, and this program is upon execution, it may include as above-mentioned
The flow process of the embodiment of each method.Wherein, described storage medium can be magnetic disc, CD, read-only storage
Memory body (Read-Only Memory, ROM) or random store-memory body (Random Access
Memory, RAM) etc..
Above a kind of generation method and apparatus applying data provided herein is carried out detailed Jie
Continuing, principle and the embodiment of the application are set forth by specific embodiment used herein, above
The explanation of embodiment is only intended to help and understands the present processes and core concept thereof;Simultaneously for this
The those skilled in the art in field, according to the thought of the application, the most all
Will change, in sum, this specification content should not be construed as the restriction to the application.
Claims (10)
1. the generation method applying data, it is characterised in that including:
Generate one group and meet the random sample being distributed the most very much;
According to the order carrying out to center choosing from the two ends being distributed the most very much, choose N number of random sample, with
The numerical value summation making the N number of random sample finally chosen is M;
With the numerical value of N number of random sample chosen for applying the numerical value of data, generate N number of application data;
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
Method the most according to claim 1, it is characterised in that when the numerical value of described application data has
When having smallest limit value and maximum upper limit, the described N number of random sample finally chosen is that numerical value meets institute
State the random sample of smallest limit value and maximum upper limit.
Method the most according to claim 2, it is characterised in that described according to from two be distributed the most very much
Duan Xiang center carries out the order chosen, and chooses N number of random sample, so that the N number of random sample chosen
The total value that numerical value summation is user's desired application data, including:
N-1 random sample is chosen according to the order carrying out to center from the two ends being distributed the most very much choosing, and
The numerical value of N-1 the random sample chosen meets described smallest limit value and maximum upper limit, so that using
Difference between the total value of the desired application in family data and the numerical value summation of N-1 random sample chosen
Meet described smallest limit value and maximum upper limit;
Choosing last random sample, the numerical value of last random sample described is that user is desired answers
By the difference between the total value of data and the numerical value summation of N-1 random sample chosen.
Method the most according to claim 1, it is characterised in that described generation one group meets and divides the most very much
The random sample of cloth, including:
Generate one group of random number;
Described one group of random number is transformed to one group and meets the random sample being distributed the most very much.
Method the most as claimed in any of claims 1 to 4, it is characterised in that described method
Also include:
In response to getting the request applying data, from the N number of application data generated, randomly select one not
Distribution application data and be allocated.
6. the generating means applying data, it is characterised in that including:
Sample generation unit, meets, for generating one group, the random sample being distributed the most very much;
Unit chosen by sample, for according to the order carrying out to center choosing from the two ends being distributed the most very much, choosing
Take N number of random sample, so that the numerical value summation of the N number of random sample finally chosen is M;
Electronic gift signal generating unit, the gold that the numerical value for the N number of random sample to choose is application data
Volume, generates N number of application data;
Wherein, the number of the random sample of generation is the fewest, application data numerical value the most uniform, generation with
Press proof number originally is the most, and the numerical value of application data is the most irregular, and N is total number of desired application data,
M is the total value of desired application data, and the meansigma methods being distributed the most very much is M/N.
Device the most according to claim 6, it is characterised in that when the numerical value of described application data has
When having smallest limit value and maximum upper limit, the described N number of random sample finally chosen is that numerical value meets institute
State the random sample of smallest limit value and maximum upper limit.
Device the most according to claim 7, it is characterised in that described sample is chosen unit and included:
First chooses subelement, for selecting according to the order carrying out to center from the two ends being distributed the most very much choosing
Take N-1 random sample, and the numerical value of N-1 the random sample chosen meet described smallest limit value and
Maximum upper limit, so that the total value of user's desired application data and N-1 the random sample chosen
Numerical value summation between difference meet described smallest limit value and maximum upper limit;
Second chooses subelement, is used for choosing last random sample, last random sample described
The numerical value summation of the total value that numerical value is user's desired application data and N-1 the random sample chosen
Between difference.
Device the most according to claim 6, it is characterised in that described sample generation unit includes:
Generating random number subelement, for generating one group of random number;
Varitron unit, for described one group of random number is transformed to one group meet be distributed the most very much with press proof
This.
10. according to the device described in any one in claim 6 to 9, it is characterised in that described dress
Put and also include:
Application data allocation unit, in response to getting the request applying data, N number of from generation should
With data randomly selecting unappropriated application data and being allocated.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510158933.8A CN106157075A (en) | 2015-04-03 | 2015-04-03 | The generation method and apparatus of application data |
PCT/CN2016/076696 WO2016155516A1 (en) | 2015-04-03 | 2016-03-18 | Application data generation method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510158933.8A CN106157075A (en) | 2015-04-03 | 2015-04-03 | The generation method and apparatus of application data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106157075A true CN106157075A (en) | 2016-11-23 |
Family
ID=57005592
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510158933.8A Pending CN106157075A (en) | 2015-04-03 | 2015-04-03 | The generation method and apparatus of application data |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106157075A (en) |
WO (1) | WO2016155516A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830825A (en) * | 2018-08-10 | 2020-02-21 | 武汉斗鱼网络科技有限公司 | Live broadcast room reward return method, storage medium, electronic equipment and server |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521268A (en) * | 2011-11-22 | 2012-06-27 | 浪潮电子信息产业股份有限公司 | Method for automatically filling missing data item |
CN102722537A (en) * | 2012-05-22 | 2012-10-10 | 苏州阔地网络科技有限公司 | Database test data generation method and system thereof |
CN103877725B (en) * | 2012-12-20 | 2017-05-17 | 腾讯科技(深圳)有限公司 | Electronic chess and card data processing method and system |
US9679440B2 (en) * | 2013-09-09 | 2017-06-13 | Bally Gaming, Inc. | Systems and methods for a community award and for providing culturally configured awards |
-
2015
- 2015-04-03 CN CN201510158933.8A patent/CN106157075A/en active Pending
-
2016
- 2016-03-18 WO PCT/CN2016/076696 patent/WO2016155516A1/en active Application Filing
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110830825A (en) * | 2018-08-10 | 2020-02-21 | 武汉斗鱼网络科技有限公司 | Live broadcast room reward return method, storage medium, electronic equipment and server |
Also Published As
Publication number | Publication date |
---|---|
WO2016155516A1 (en) | 2016-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103942093B (en) | Method for processing business and system | |
CN106375142B (en) | The test method and device of application program | |
CN106294233B (en) | A kind of transfer control method and device of direct memory access | |
CN106095549A (en) | The jump method of a kind of Mobile solution App and redirect device | |
CN106406780A (en) | File print management method, equipment, server and system | |
CN105426452B (en) | A kind of business processing and data control method and device | |
CN104104551B (en) | Cloud resource need assessment method and device | |
CN104902019A (en) | Application software (App) popularization method, server and terminal | |
CN110493184A (en) | The processing method of login page, device, electronic device in the client | |
CN103297462B (en) | The verification method and device of a kind of business object | |
CN105743947A (en) | Resource sharing method and apparatus | |
CN101499995A (en) | Service scheduling method, system and apparatus for service scheduling | |
CN107733995A (en) | A kind of session keeping method, device and electronic equipment | |
CN105825101A (en) | Account number management method and device for smart home platform | |
CN103581273B (en) | A kind of distributed system performs method, the apparatus and system of business | |
CN107329834A (en) | Method and apparatus for performing calculating task | |
CN106998314A (en) | Account exchange method and device | |
CN104092694B (en) | A kind of method and system of the account distribution of mobile phone games | |
CN108600564A (en) | The method and apparatus of customer service | |
CN109756465A (en) | A kind of method and apparatus of authentication | |
CN106157075A (en) | The generation method and apparatus of application data | |
CN106713163A (en) | Method and apparatus for deploying server load | |
CN106503976A (en) | Account application executes control method and system | |
CN104184685B (en) | Data center resource distribution method, apparatus and system | |
CN107395663A (en) | Data capture method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161123 |