Summary of the invention
The embodiment of the present invention provides a kind of data distributing method, device, electronic equipment and computer readable storage medium.
In a first aspect, providing a kind of data distributing method in the embodiment of the present invention.
Specifically, the data distributing method, comprising:
Obtain data to be distributed, wherein the data to be distributed includes the first data to be distributed and the second data to be distributed;
It determines object to be allocated, and calculates the degree of correlation between the object to be allocated and the data to be distributed;
The data to be distributed is distributed into the object to be allocated according to the degree of correlation.
With reference to first aspect, for the embodiment of the present invention in the first implementation of first aspect, the determination is to be allocated
Object, and calculate the degree of correlation between the object to be allocated and the data to be distributed, comprising:
Determine object to be allocated;
The ratio that the subjects history operation data to be allocated accounts for all subjects history operation data summations to be allocated is calculated,
Wherein, all subjects history operation data summations to be allocated are equal with the summation of first data to be distributed;
By the degree of correlation of the ratio confirmation between the object to be allocated and the data to be distributed.
With reference to first aspect with the first implementation of first aspect, second in first aspect of the embodiment of the present invention
It is described that the data to be distributed is distributed to by the object to be allocated according to the degree of correlation in implementation, comprising:
The ratio of all subjects history operation data summations to be allocated is accounted for according to the subjects history operation data to be allocated,
Calculate target data to be distributed corresponding with the object to be allocated;
The target data to be distributed is distributed into the object to be allocated.
With reference to first aspect, second of implementation of the first implementation of first aspect and first aspect, this public affairs
Be opened in the third implementation of first aspect, it is described accounted for according to the subjects history operation data to be allocated it is all to be allocated
The ratio of subjects history operation data summation calculates target data to be distributed corresponding with the object to be allocated, comprising:
The subjects history operation data to be allocated is accounted for the ratio point of all subjects history operation data summations to be allocated
It is not multiplied with first data to be distributed and the second data to be distributed, obtains first object corresponding with the object to be allocated
Data to be distributed and the second target data to be distributed;
The first object data to be distributed and the second target data to be distributed are determined as and the object pair to be allocated
The target data to be distributed answered.
With reference to first aspect, the first implementation of first aspect, first aspect second of implementation and first
The third implementation of aspect, the disclosure is in the 4th kind of implementation of first aspect, further includes:
Remaining data to be distributed is calculated, and the remaining data to be distributed is distributed to according to preset rules described to be allocated
Object.
With reference to first aspect, the first implementation, second of implementation of first aspect, first party of first aspect
The third implementation in face and the 4th kind of implementation of first aspect, five kind implementation of the disclosure in first aspect
In, the remaining data to be distributed of the calculating, and the remaining data to be distributed distributed to according to preset rules described to be allocated
Object, comprising:
Obtain smallest allocation data unit;
It is to be allocated according to the residue obtained after smallest allocation data unit execution distribution to calculate the data to be distributed
Data;
The remaining data to be distributed is distributed into the object to be allocated according to preset rules.
Second aspect provides a kind of data distribution device in the embodiment of the present invention.
Specifically, the data distribution device, comprising:
Module is obtained, is configured as obtaining data to be distributed, wherein the data to be distributed includes the first data to be distributed
With the second data to be distributed;
Determining module is configured to determine that object to be allocated, and calculates the object to be allocated and the data to be distributed
Between the degree of correlation;
Distribution module is configured as that the data to be distributed is distributed to the object to be allocated according to the degree of correlation.
In conjunction with second aspect, the embodiment of the present invention is in the first implementation of second aspect, the determining module packet
It includes:
First determines submodule, is configured to determine that object to be allocated;
First computational submodule, is configured as calculating the subjects history operation data to be allocated and accounts for all objects to be allocated
The ratio of historical operating data summation, wherein all subjects history operation data summations to be allocated are with described first wait divide
Summation with data is equal;
Second determines submodule, is configured as the ratio-dependent being the object to be allocated and the data to be distributed
Between the degree of correlation.
In conjunction with the first of second aspect and second aspect implementation, second in second aspect of the embodiment of the present invention
In implementation, the distribution module includes:
Second computational submodule is configured as accounting for all objects to be allocated according to the subjects history operation data to be allocated
The ratio of historical operating data summation calculates target data to be distributed corresponding with the object to be allocated;
First distribution sub module is configured as the target data to be distributed distributing to the object to be allocated.
In conjunction with the first implementation of second aspect, second aspect and second of implementation of second aspect, this public affairs
It is opened in the third implementation of second aspect, second computational submodule includes:
Third computational submodule is configured as the subjects history operation data to be allocated accounting for all objects to be allocated and go through
The ratio of history operation data summation is multiplied with first data to be distributed and the second data to be distributed respectively, obtain with it is described to
The corresponding first object data to be distributed of distribution object and the second target data to be distributed;
Third determines submodule, is configured as the first object data to be distributed and the second target data to be distributed is true
It is set to target data to be distributed corresponding with the object to be allocated.
In conjunction with the first implementation of second aspect, second aspect, second of implementation and second of second aspect
The third implementation of aspect, the disclosure is in the 4th kind of implementation of second aspect, further includes:
Computing module is configured as calculating remaining data to be distributed, and by the remaining data to be distributed according to default rule
Then distribute to the object to be allocated.
The first implementation, second of implementation of second aspect, second party in conjunction with second aspect, second aspect
The third implementation in face and the 4th kind of implementation of second aspect, five kind implementation of the disclosure in second aspect
In, the computing module includes:
Acquisition submodule is configured as obtaining smallest allocation data unit;
4th computational submodule, is configured as calculating the data to be distributed and executes according to the smallest allocation data unit
The remaining data to be distributed obtained after distribution;
Second distribution sub module is configured as distributing to the remaining data to be distributed according to preset rules described wait divide
With object.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including memory and processor, the memories
The computer instruction of data distributing method in above-mentioned first aspect is executed for storing one or more support data distribution device,
The processor is configured to for executing the computer instruction stored in the memory.The data distribution device can be with
Including communication interface, for data distribution device and other equipment or communication.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, and distribution fills for storing data
Computer instruction used is set, it includes be involved by data distribution device for executing data distributing method in above-mentioned first aspect
And computer instruction.
Technical solution provided in an embodiment of the present invention can include the following benefits:
Above-mentioned technical proposal is by calculating the degree of correlation between object to be allocated and data to be distributed, and according to being calculated
The degree of correlation data to be distributed is distributed into corresponding object to be allocated.The technical solution is in the feelings for considering many factors
Under condition, data to be distributed is reasonably distributed, is conducive to the validity for safeguarding data distribution, while use can also be promoted
The usage experience at family.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The embodiment of the present invention can be limited.
Specific embodiment
Hereinafter, the illustrative embodiments of the embodiment of the present invention will be described in detail with reference to the attached drawings, so that art technology
Them are easily implemented in personnel.In addition, for the sake of clarity, being omitted in the accompanying drawings unrelated with description illustrative embodiments
Part.
In embodiments of the present invention, it should be appreciated that the term of " comprising " or " having " etc. is intended to refer in this specification
The presence of disclosed feature, number, step, behavior, component, part or combinations thereof, and be not intended to exclude it is one or more its
A possibility that his feature, number, step, behavior, component, part or combinations thereof exist or are added.
It also should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention
It can be combined with each other.Embodiment that the present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Technical solution provided in an embodiment of the present invention passes through the degree of correlation calculated between object and data to be distributed to be allocated,
And data to be distributed is distributed to by corresponding object to be allocated according to the degree of correlation being calculated.The technical solution is considering
In the case where many factors, data to be distributed is reasonably distributed, is conducive to the validity for safeguarding data distribution, together
When can also promote the usage experience of user.
Fig. 1 shows the flow chart of data distributing method according to an embodiment of the present invention, as shown in Figure 1, the data
Distribution method includes the following steps S101-S103:
In step s101, data to be distributed is obtained;
In step s 102, it determines object to be allocated, and calculates between the object to be allocated and the data to be distributed
The degree of correlation;
In step s 103, the data to be distributed is distributed to by the object to be allocated according to the degree of correlation.
Mentioned above, with the development of data technique and social economy, more and more users pass through internet platform
It provided a loan, invested, or the financial products such as purchase financing.There are multiple investment cycles for many products at present, but also exist
Multiple investors, in this case, for each issue of investor of the recycling of assets capital and distribution of income, there are no generate system
One, reasonable operation mechanism, this validity distributed not only bad for maintenance data, while being also unfavorable for promoting the use of user
Experience.
In view of the above problem, in this embodiment, a kind of data distributing method is proposed, this method is by calculating wait divide
Data to be distributed is distributed to accordingly with the degree of correlation between object and data to be distributed, and according to the degree of correlation being calculated
Object to be allocated.The technical solution is reasonably divided in the case where considering many factors, for data to be distributed
Match, is conducive to the validity for safeguarding data distribution, while the usage experience of user can also be promoted.
For ease of description, hereinafter the present invention is solved for there are multiple investors a investment product
It releases and illustrates.
In an optional implementation of the present embodiment, the data to be distributed be can be understood as by investor a certain
The data for being returned investor investment cycle, due in this embodiment, investor be possible to there are two or more, because
This, it is necessary to the data given back by investor are reasonably distributed, so that each investor is within this investment cycle
Certain investment can be obtained to return.
In an optional implementation of the present embodiment, the data to be distributed includes the first data to be distributed and second
Data to be distributed, first data to be distributed such as can for by investor in a certain returned in investment cycle, needs
The capital data of two or more investors are distributed to, second data to be distributed can be such as by investor a certain
By interest data returned in investment cycle, to need to distribute to two or more investors.
In an optional implementation of the present embodiment, the data to be distributed can be the number to be allocated of multiple phases time
According in this embodiment, the data to be distributed refers to the data to be distributed of a certain phase time.
In an optional implementation of the present embodiment, the object to be allocated refers to receiving the target of data distribution
Side, for example can be investor.Wherein, the object to be allocated can be two or more.
In an optional implementation of the present embodiment, as shown in Fig. 2, the step S102, that is, it is to be allocated right to determine
As, and the step of calculating the degree of correlation between the object to be allocated and the data to be distributed, include the following steps S201-
S203:
In step s 201, object to be allocated is determined;
In step S202, calculates the subjects history operation data to be allocated and account for all subjects history operands to be allocated
According to the ratio of summation, wherein all subjects history operation data summations to be allocated are total with first data to be distributed
With it is equal;
It is in step S203, the ratio confirmation is related between the object to be allocated and the data to be distributed
Degree.
In order to reasonably be distributed for data to be distributed, in this embodiment, subjects history to be allocated is operated
Data account for the ratio of all subjects history operation data summations to be allocated as the distribution foundation for data to be distributed.Specifically
Ground, it is first determined object to be allocated;Then it calculates the subjects history operation data to be allocated and accounts for all subjects histories to be allocated
The ratio of operation data summation, wherein all subjects history operation data summations to be allocated and the described first number to be allocated
According to summation it is equal;The finally degree of correlation by the ratio confirmation between the object to be allocated and the data to be distributed,
Distribution foundation as subsequent data to be distributed.
In an optional implementation of the present embodiment, the subjects history operation data to be allocated refers to be allocated
It is the amount of money invested by investor before object, all subjects history operation data summations to be allocated refer to all to be allocated
It is the amount totals invested by investor before object, in fact, amount totals here are namely by institute before investor
The investment amount of receiving is total, also the summation of the first data to be distributed of as all phases time.
For example, if received 9000 yuan of investment before investor, namely 9000 yuan of money, investment have been borrowed by investor
There is 3: investor A, investor B and investor C in side, wherein investor A has invested 1000 yuan, and investor B has invested 3000
Member, investor C have invested 5000 yuan, divide for three phases returned by investor, and phase interest rate of borrowing money is 4 ‰.So, object to be allocated refers to
It is exactly investor A, investor B and investor C, it is assumed that returning rule is equal capital, i.e., is returned by each issue of investor identical
Capital, that is, 1/3,3000 yuan of total amount of providing a loan, and remaining loan interest caused by the current period, then the first number to be allocated
According to being exactly 3000 yuan, the second data to be distributed is remaining loan interest caused by the current period, the first data to be distributed and second
The amount of money that is data to be distributed and exactly being needed to return by investor's current period, the subjects history operation data to be allocated is exactly to throw
The amount of money invested before capital A, investor B and investor C: 1000 yuan, 3000 yuan and 5000 yuan, all objects to be allocated are gone through
History operation data summation is 1000 yuan+3000 yuan+5000 yuan=9000 yuan, namely by the loan ceiling of investor or three phases
The capital summation of required return.In this embodiment, it is total to account for all investor's historical operating datas for the historical operating data of investor A
The ratio of sum is 1000 yuan/9000 yuan=1/9, and it is total that the historical operating data of investor B accounts for all investor's historical operating datas
The ratio of sum is 3000 yuan/9000 yuan=1/3, and it is total that the historical operating data of investor C accounts for all investor's historical operating datas
The ratio of sum is 5000 yuan/9000 yuan=5/9.
In an optional implementation of the present embodiment, as shown in figure 3, the step S103, i.e., according to the correlation
The step of data to be distributed is distributed to the object to be allocated by degree, includes the following steps S301-S302:
In step S301, all subjects history operands to be allocated are accounted for according to the subjects history operation data to be allocated
According to the ratio of summation, target data to be distributed corresponding with the object to be allocated is calculated;
In step s 302, the target data to be distributed is distributed into the object to be allocated.
In order to reasonably be distributed for data to be distributed, the validity of enhancing maintenance data distribution promotes user's
Usage experience accounts for all subjects history operands to be allocated according to subjects history operation data to be allocated in this embodiment
According to the ratio of summation, the target data to be distributed for distributing to object to be allocated is determined.Specifically, first according to described to be allocated right
As historical operating data accounts for the ratio of all subjects history operation data summations to be allocated, calculate corresponding with the object to be allocated
Target data to be distributed;Then the target data to be distributed is distributed into the object to be allocated.
In an optional implementation of the present embodiment, as shown in figure 4, the step S301, i.e., according to described wait divide
The ratio of all subjects history operation data summations to be allocated is accounted for object historical operating data, is calculated and the object to be allocated
The step of corresponding target data to be distributed, include the following steps S401-S402:
In step S401, the subjects history operation data to be allocated is accounted for into all subjects history operation datas to be allocated
The ratio of summation is multiplied with first data to be distributed and the second data to be distributed respectively, obtains and the object pair to be allocated
The first object data to be distributed and the second target data to be distributed answered;
In step S402, by the first object data to be distributed and the second target data to be distributed be determined as with it is described
The corresponding target data to be distributed of object to be allocated.
In order to carry out rationally specific distribution for data to be distributed, in this embodiment, by the object to be allocated
Historical operating data account for the ratios of all subjects history operation data summations to be allocated respectively with first data to be distributed and
Second data to be distributed is multiplied, and will obtain first object data to be distributed corresponding with the object to be allocated and second target
Data to be distributed carries out subsequent data distribution as target data to be distributed corresponding with the object to be allocated.
Still by taking example above as an example, the historical operating data of investor A accounts for all investor's historical operating data summations
Ratio be 1000 yuan/9000 yuan=1/9, the historical operating data of investor B accounts for all investor's historical operating data summations
Ratio be 3000 yuan/9000 yuan=1/3, the historical operating data of investor C accounts for all investor's historical operating data summations
Ratio be 5000 yuan/9000 yuan=5/9, phase interest rate of borrowing money is 4 ‰, and refund issue is 3, the in first phase data to be distributed
One data to be distributed is 3000 yuan, and the second data to be distributed is 36 yuan, then capital i.e. the first mesh that investor withdraws the A first phase
Marking data to be distributed is 3000 Yuan ╳ 1/9=333.33 members, and income i.e. the second target data to be distributed that the first phase obtains is 36
Yuan ╳ 1/9=4 member, the capital that investor withdraws the B first phase, that is, first object data to be distributed are 3000 Yuan ╳ 1/3=1000
Member, income i.e. the second target data to be distributed that the first phase obtains are 36 Yuan ╳ 1/3=12 members, and investor withdraws the C first phase
Capital, that is, first object data to be distributed is 3000 Yuan ╳ 5/9=1666.66 members, and income i.e. the second target that the first phase obtains waits for
Distributing data is 36 Yuan ╳ 5/9=20 members.
When in view of calculating in the distribution for carrying out the amount of money, often occur the case where non-integer, being at this moment usually taken and taking decimal
Double-digit measure after point is possible to will appear residue by the amount of money that investor returns in this way, in order to rationally dispose remaining gold
Volume, in an optional implementation of the present embodiment, the method also includes calculating remaining data to be distributed, and will be described surplus
The step of remaining data to be distributed distributes to the object to be allocated according to preset rules, i.e., as shown in figure 5, the method includes with
Lower step S501-S504:
In step S501, data to be distributed is obtained;
In step S502, object to be allocated is determined, and calculate between the object to be allocated and the data to be distributed
The degree of correlation;
In step S503, the data to be distributed is distributed to by the object to be allocated according to the degree of correlation;
In step S504, remaining data to be distributed is calculated, and by the remaining data to be distributed according to preset rules point
Object to be allocated described in dispensing.
In an optional implementation of the present embodiment, as shown in fig. 6, the step S504, that is, calculate remaining wait divide
With data, and the step of remaining data to be distributed is distributed into the object to be allocated according to preset rules, including it is following
Step S601-S603:
In step s 601, smallest allocation data unit is obtained;
In step S602, calculates after the data to be distributed executes distribution according to the smallest allocation data unit and obtain
Remaining data to be distributed;
In step S603, the remaining data to be distributed is distributed into the object to be allocated according to preset rules.
It is mentioned above, when the distribution for carrying out the amount of money calculates, often there is the case where non-integer, be at this moment usually taken take it is small
Double-digit measure after several points, that is to say, that smallest allocation data unit is usually arranged as point.So in this embodiment,
For reasonable distribution residue data to be distributed, first acquisition smallest allocation data unit;Then the data to be distributed is calculated to press
The remaining data to be distributed obtained after distribution is executed according to the smallest allocation data unit;Finally by the remaining data to be distributed
The object to be allocated is distributed to according to preset rules.
Still by taking example above as an example, after proportionally distributing capital and income for investor, returned by investor
Principal amount also is 3000 yuan, and the interest amount returned by investor is 36 yuan, and the principal amount that distribution is completed is
333.33+1000+1666.66=2999.99 first, the revenue amount that distribution is completed is 4+12+20=36 member, it is clear that is thrown
There are also 0.01 yuan of residue, i.e., remaining data to be distributed mentioned above, for remaining to be allocated for the principal amount that capital returns
Data can distribute to the object to be allocated according to preset rules.
In an optional implementation of the present embodiment, the preset rules can using being randomly assigned principle, i.e., from
An investor is randomly choosed in investor A, B, C to be allocated, and can also use order-assigned principle, i.e., according to a certain default
Sequentially, an investor is selected to be allocated from investor A, B, C, wherein the preset order can arrange suitable for nature
Sequence can also be ranked up according to the ratio between investments of investor A, B, C.Original is randomly assigned it should be noted that either using
Then or order-assigned principle can not carry out duplicate allocation for investor in an assignment period, that is to say, that
When distributing remaining data to be distributed, in an assignment period, multiple investments can and can only be assigned once, the distribution week
Phase refers to that all investors traverse one time period.For example, investor has 3 if refund issue was 6 phases, respectively A,
B, C, each issue of generation one remaining data to be distributed, if being randomly assigned principle, the first phase remaining number to be allocated using A, B, C
According to investor B can be distributed to, then second phase residue data to be distributed should just distribute to investor A or C, without should
Distribute to investor B, it is assumed that second phase residue data to be distributed is allocated to investor A, then the third phase remaining number to be allocated
According to can only just distribute to investor C, this completes first assignment period, second assignment period can with and so on.
Only the distribution of remaining data to be distributed and processing are carried out so that residue occur in capital data to be allocated as an example above
Illustrate, in fact, capital data to be allocated and interest data to be allocated are possible to occur remaining, no matter what type surplus
Remainder evidence can be handled and be distributed in a similar way, and the present invention no longer repeats.
Following is apparatus of the present invention embodiment, can be used for executing embodiment of the present invention method.
Fig. 7 shows the structural block diagram of data distribution device according to an embodiment of the present invention, which can be by soft
Being implemented in combination with as some or all of of electronic equipment for part, hardware or both, specifically can be achieved as platform side.Such as Fig. 7
Shown, the data distribution device includes:
Module 701 is obtained, is configured as obtaining data to be distributed;
Determining module 702 is configured to determine that object to be allocated, and calculates the object to be allocated and the number to be allocated
The degree of correlation between;
Distribution module 703, it is described to be allocated right to be configured as being distributed to the data to be distributed according to the degree of correlation
As.
Mentioned above, with the development of data technique and social economy, more and more users pass through internet platform
It provided a loan, invested, or the financial products such as purchase financing.There are multiple investment cycles for many products at present, but also exist
Multiple investors, in this case, for each issue of investor of the recycling of assets capital and distribution of income, there are no generate system
One, reasonable operation mechanism, this validity distributed not only bad for maintenance data, while being also unfavorable for promoting the use of user
Experience.
In view of the above problem, in this embodiment, a kind of data distribution device is proposed, the device is by calculating wait divide
Data to be distributed is distributed to accordingly with the degree of correlation between object and data to be distributed, and according to the degree of correlation being calculated
Object to be allocated.The technical solution is reasonably divided in the case where considering many factors, for data to be distributed
Match, is conducive to the validity for safeguarding data distribution, while the usage experience of user can also be promoted.
For ease of description, hereinafter the present invention is solved for there are multiple investors a investment product
It releases and illustrates.
In an optional implementation of the present embodiment, the data to be distributed be can be understood as by investor a certain
The data for being returned investor investment cycle, due in this embodiment, investor be possible to there are two or more, because
This, it is necessary to the data given back by investor are reasonably distributed, so that each investor is within this investment cycle
Certain investment can be obtained to return.
In an optional implementation of the present embodiment, the data to be distributed includes the first data to be distributed and second
Data to be distributed, first data to be distributed such as can for by investor in a certain returned in investment cycle, needs
The capital data of two or more investors are distributed to, second data to be distributed can be such as by investor a certain
By interest data returned in investment cycle, to need to distribute to two or more investors.
In an optional implementation of the present embodiment, the data to be distributed can be the number to be allocated of multiple phases time
According in this embodiment, the data to be distributed refers to the data to be distributed of a certain phase time.
In an optional implementation of the present embodiment, the object to be allocated refers to receiving the target of data distribution
Side, for example can be investor.Wherein, the object to be allocated can be two or more.
In an optional implementation of the present embodiment, as shown in figure 8, the determining module 702 includes:
First determines submodule 801, is configured to determine that object to be allocated;
First computational submodule 802, be configured as calculating the subjects history operation data to be allocated account for it is all to be allocated
The ratio of subjects history operation data summation, wherein all subjects history operation data summations to be allocated and described first
The summation of data to be distributed is equal;
Second determine submodule 803, be configured as by the ratio confirmation be the object to be allocated with it is described to be allocated
The degree of correlation between data.
In order to reasonably be distributed for data to be distributed, in this embodiment, subjects history to be allocated is operated
Data account for the ratio of all subjects history operation data summations to be allocated as the distribution foundation for data to be distributed.Specifically
Ground, first determines that submodule 801 determines object to be allocated;First computational submodule 802 calculates the subjects history behaviour to be allocated
The ratio of all subjects history operation data summations to be allocated is accounted for as data, wherein all subjects history operations to be allocated
Data summation is equal with the summation of first data to be distributed;The ratio confirmation is described by the second determining submodule 803
The degree of correlation between object to be allocated and the data to be distributed, the distribution foundation as subsequent data to be distributed.
In an optional implementation of the present embodiment, the subjects history operation data to be allocated refers to be allocated
It is the amount of money invested by investor before object, all subjects history operation data summations to be allocated refer to all to be allocated
It is the amount totals invested by investor before object, in fact, amount totals here are namely by institute before investor
The investment amount of receiving is total, also the summation of the first data to be distributed of as all phases time.
For example, if received 9000 yuan of investment before investor, namely 9000 yuan of money, investment have been borrowed by investor
There is 3: investor A, investor B and investor C in side, wherein investor A has invested 1000 yuan, and investor B has invested 3000
Member, investor C have invested 5000 yuan, divide for three phases returned by investor, and phase interest rate of borrowing money is 4 ‰.So, object to be allocated refers to
It is exactly investor A, investor B and investor C, it is assumed that returning rule is equal capital, i.e., is returned by each issue of investor identical
Capital, that is, 1/3,3000 yuan of total amount of providing a loan, and remaining loan interest caused by the current period, then the first number to be allocated
According to being exactly 3000 yuan, the second data to be distributed is remaining loan interest caused by the current period, the first data to be distributed and second
The amount of money that is data to be distributed and exactly being needed to return by investor's current period, the subjects history operation data to be allocated is exactly to throw
The amount of money invested before capital A, investor B and investor C: 1000 yuan, 3000 yuan and 5000 yuan, all objects to be allocated are gone through
History operation data summation is 1000 yuan+3000 yuan+5000 yuan=9000 yuan, namely by the loan ceiling of investor or three phases
The capital summation of required return.In this embodiment, it is total to account for all investor's historical operating datas for the historical operating data of investor A
The ratio of sum is 1000 yuan/9000 yuan=1/9, and it is total that the historical operating data of investor B accounts for all investor's historical operating datas
The ratio of sum is 3000 yuan/9000 yuan=1/3, and it is total that the historical operating data of investor C accounts for all investor's historical operating datas
The ratio of sum is 5000 yuan/9000 yuan=5/9.
In an optional implementation of the present embodiment, as shown in figure 9, the distribution module 703 includes:
Second computational submodule 901 is configured as being accounted for according to the subjects history operation data to be allocated all to be allocated
The ratio of subjects history operation data summation calculates target data to be distributed corresponding with the object to be allocated;
First distribution sub module 902 is configured as the target data to be distributed distributing to the object to be allocated.
In order to reasonably be distributed for data to be distributed, the validity of enhancing maintenance data distribution promotes user's
Usage experience accounts for all subjects history operands to be allocated according to subjects history operation data to be allocated in this embodiment
According to the ratio of summation, the target data to be distributed for distributing to object to be allocated is determined.Specifically, the second computational submodule 901
Account for the ratio of all subjects history operation data summations to be allocated according to the subjects history operation data to be allocated, calculate with it is described
The corresponding target data to be distributed of object to be allocated;The target data to be distributed is distributed to institute by the first distribution sub module 902
State object to be allocated.
In an optional implementation of the present embodiment, as shown in Figure 10, second computational submodule 901 includes:
Third computational submodule 1001, it is all to be allocated right to be configured as accounting for the subjects history operation data to be allocated
As the ratio of historical operating data summation is multiplied with first data to be distributed and the second data to be distributed respectively, obtain and institute
State the corresponding first object data to be distributed of object to be allocated and the second target data to be distributed;
Third determines submodule 1002, is configured as the first object data to be distributed and the second target number to be allocated
According to being determined as target data to be distributed corresponding with the object to be allocated.
In order to carry out rationally specific distribution for data to be distributed, in this embodiment, by the object to be allocated
Historical operating data account for the ratios of all subjects history operation data summations to be allocated respectively with first data to be distributed and
Second data to be distributed is multiplied, and will obtain first object data to be distributed corresponding with the object to be allocated and second target
Data to be distributed carries out subsequent data distribution as target data to be distributed corresponding with the object to be allocated.
Still by taking example above as an example, the historical operating data of investor A accounts for all investor's historical operating data summations
Ratio be 1000 yuan/9000 yuan=1/9, the historical operating data of investor B accounts for all investor's historical operating data summations
Ratio be 3000 yuan/9000 yuan=1/3, the historical operating data of investor C accounts for all investor's historical operating data summations
Ratio be 5000 yuan/9000 yuan=5/9, phase interest rate of borrowing money is 4 ‰, and refund issue is 3, the in first phase data to be distributed
One data to be distributed is 3000 yuan, and the second data to be distributed is 36 yuan, then capital i.e. the first mesh that investor withdraws the A first phase
Marking data to be distributed is 3000 Yuan ╳ 1/9=333.33 members, and income i.e. the second target data to be distributed that the first phase obtains is 36
Yuan ╳ 1/9=4 member, the capital that investor withdraws the B first phase, that is, first object data to be distributed are 3000 Yuan ╳ 1/3=1000
Member, income i.e. the second target data to be distributed that the first phase obtains are 36 Yuan ╳ 1/3=12 members, and investor withdraws the C first phase
Capital, that is, first object data to be distributed is 3000 Yuan ╳ 5/9=1666.66 members, and income i.e. the second target that the first phase obtains waits for
Distributing data is 36 Yuan ╳ 5/9=20 members.
When in view of calculating in the distribution for carrying out the amount of money, often occur the case where non-integer, being at this moment usually taken and taking decimal
Double-digit measure after point is possible to will appear residue by the amount of money that investor returns in this way, in order to rationally dispose remaining gold
Volume, in an optional implementation of the present embodiment, described device further includes calculating remaining data to be distributed, and described will remain
Remaining data to be distributed distributes to the part of the object to be allocated according to preset rules, i.e., as shown in figure 11, described device includes:
Module 1101 is obtained, is configured as obtaining data to be distributed;
Determining module 1102 is configured to determine that object to be allocated, and calculate the object to be allocated with it is described to be allocated
The degree of correlation between data;
Distribution module 1103, it is described to be allocated right to be configured as being distributed to the data to be distributed according to the degree of correlation
As;
Computing module 1104 is configured as calculating remaining data to be distributed, and by the remaining data to be distributed according to pre-
If rule distributes to the object to be allocated.
In an optional implementation of the present embodiment, as shown in figure 12, the computing module 1104 includes:
Acquisition submodule 1201 is configured as obtaining smallest allocation data unit;
4th computational submodule 1202 is configured as calculating the data to be distributed according to the smallest allocation data unit
Execute the remaining data to be distributed obtained after distribution;
Second distribution sub module 1203 is configured as distributing to the remaining data to be distributed according to preset rules described
Object to be allocated.
It is mentioned above, when the distribution for carrying out the amount of money calculates, often there is the case where non-integer, be at this moment usually taken take it is small
Double-digit measure after several points, that is to say, that smallest allocation data unit is usually arranged as point.So in this embodiment,
For reasonable distribution residue data to be distributed, acquisition submodule 1201 obtains smallest allocation data unit;4th computational submodule
1202, which calculate the data to be distributed, executes the remaining data to be distributed obtained after distribution according to the smallest allocation data unit;
The remaining data to be distributed is distributed to the object to be allocated according to preset rules by the second distribution sub module 1203.
Still by taking example above as an example, after proportionally distributing capital and income for investor, returned by investor
Principal amount also is 3000 yuan, and the interest amount returned by investor is 36 yuan, and the principal amount that distribution is completed is
333.33+1000+1666.66=2999.99 first, the revenue amount that distribution is completed is 4+12+20=36 member, it is clear that is thrown
There are also 0.01 yuan of residue, i.e., remaining data to be distributed mentioned above, for remaining to be allocated for the principal amount that capital returns
Data can distribute to the object to be allocated according to preset rules.
In an optional implementation of the present embodiment, the preset rules can using being randomly assigned principle, i.e., from
An investor is randomly choosed in investor A, B, C to be allocated, and can also use order-assigned principle, i.e., according to a certain default
Sequentially, an investor is selected to be allocated from investor A, B, C, wherein the preset order can arrange suitable for nature
Sequence can also be ranked up according to the ratio between investments of investor A, B, C.Original is randomly assigned it should be noted that either using
Then or order-assigned principle can not carry out duplicate allocation for investor in an assignment period, that is to say, that
When distributing remaining data to be distributed, in an assignment period, multiple investments can and can only be assigned once, the distribution week
Phase refers to that all investors traverse one time period.For example, investor has 3 if refund issue was 6 phases, respectively A,
B, C, each issue of generation one remaining data to be distributed, if being randomly assigned principle, the first phase remaining number to be allocated using A, B, C
According to investor B can be distributed to, then second phase residue data to be distributed should just distribute to investor A or C, without should
Distribute to investor B, it is assumed that second phase residue data to be distributed is allocated to investor A, then the third phase remaining number to be allocated
According to can only just distribute to investor C, this completes first assignment period, second assignment period can with and so on.
Only the distribution of remaining data to be distributed and processing are carried out so that residue occur in capital data to be allocated as an example above
Illustrate, in fact, capital data to be allocated and interest data to be allocated are possible to occur remaining, no matter what type surplus
Remainder evidence can be handled and be distributed in a similar way, and the present invention no longer repeats.
The embodiment of the invention also discloses a kind of electronic equipment, Figure 13 shows electronics according to an embodiment of the present invention and sets
Standby structural block diagram, as shown in figure 13, the electronic equipment 1300 include memory 1301 and processor 1302;Wherein,
The memory 1301 is for storing one or more computer instruction, wherein one or more computer
Instruction is executed by the processor 1302 to realize any of the above-described method and step.
Figure 14 is suitable for being used to realizing that the structure of the computer system of the data distributing method of embodiment according to the present invention is shown
It is intended to.
As shown in figure 14, computer system 1400 include central processing unit (CPU) 1401, can according to be stored in only
It reads the program in memory (ROM) 1402 or is loaded into random access storage device (RAM) 1403 from storage section 1408
Program and execute the various processing in above embodiment.In RAM1803, be also stored with system 1400 operate it is required various
Program and data.CPU1801, ROM1402 and RAM1403 are connected with each other by bus 1804.Input/output (I/O) interface
1405 are also connected to bus 1404.
I/O interface 1405 is connected to lower component: the importation 1406 including keyboard, mouse etc.;Including such as cathode
The output par, c 1407 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1408;And the communications portion 1409 of the network interface card including LAN card, modem etc..Communications portion 1409 passes through
Communication process is executed by the network of such as internet.Driver 1410 is also connected to I/O interface 1405 as needed.It is detachable to be situated between
Matter 1411, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1410, so as to
In being mounted into storage section 1408 as needed from the computer program read thereon.
Particularly, embodiment according to the present invention, method as described above may be implemented as computer software programs.
For example, embodiments of the present invention include a kind of computer program product comprising be tangibly embodied in and its readable medium on
Computer program, the computer program includes program code for executing the data distributing method.In such reality
It applies in mode, which can be downloaded and installed from network by communications portion 1409, and/or is situated between from detachable
Matter 1411 is mounted.
Flow chart and block diagram in attached drawing illustrate system, method and computer according to the various embodiments of the present invention
The architecture, function and operation in the cards of program product.In this regard, each box in course diagram or block diagram can be with
A part of a module, section or code is represented, a part of the module, section or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit or module involved in embodiment of the present invention can be realized by way of software, can also
It is realized in a manner of through hardware.Described unit or module also can be set in the processor, these units or module
Title do not constitute the restriction to the unit or module itself under certain conditions.
As on the other hand, the embodiment of the invention also provides a kind of computer readable storage mediums, this is computer-readable
Storage medium can be computer readable storage medium included in device described in above embodiment;It is also possible to individually
In the presence of without the computer readable storage medium in supplying equipment.Computer-readable recording medium storage has one or one
Procedure above, described program are used to execute the method for being described in the embodiment of the present invention by one or more than one processor.
Above description is only presently preferred embodiments of the present invention and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the embodiment of the present invention, however it is not limited to which the specific combination of above-mentioned technical characteristic forms
Technical solution, while should also cover in the case where not departing from the inventive concept, by above-mentioned technical characteristic or its equivalent spy
Levy the other technical solutions for carrying out any combination and being formed.Such as features described above with it is (but unlimited disclosed in the embodiment of the present invention
In) technical characteristic with similar functions is replaced mutually and the technical solution that is formed.