CN107766297A - Client end AP P data mean value calculation method and system - Google Patents

Client end AP P data mean value calculation method and system Download PDF

Info

Publication number
CN107766297A
CN107766297A CN201710931462.9A CN201710931462A CN107766297A CN 107766297 A CN107766297 A CN 107766297A CN 201710931462 A CN201710931462 A CN 201710931462A CN 107766297 A CN107766297 A CN 107766297A
Authority
CN
China
Prior art keywords
last
mrow
temp
max
now
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
Application number
CN201710931462.9A
Other languages
Chinese (zh)
Inventor
张磊
陈少杰
张文明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710931462.9A priority Critical patent/CN107766297A/en
Priority to PCT/CN2017/120119 priority patent/WO2019071855A1/en
Publication of CN107766297A publication Critical patent/CN107766297A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis

Abstract

The present invention provides client end AP P data mean value calculation method and system, and wherein methods described includes:Step 1, when the APP targets data set gets a new numerical value temp, the pre-defined APP targets data set is obtained in once mean value calculation on carrying out, and the numerical value number variable num calculated is participated in the target data setlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith all number average value variable avglast;Step 2, based on the numlast、maxlast、minlast、avglastAnd temp, calculate current all number average value avg of the APP targets data setnow.The present invention has reduction memory cost, the beneficial effect of quick obtaining to average value.

Description

Client end AP P data mean value calculation method and system
Technical field
The present invention relates to research and development of software technical field, more particularly, to client end AP P data mean value calculation method and System.
Background technology
It is in need in the development process of client to obtain the average value of each data item in real time, and obtain the average value The data source of algorithm need to remove maximum and minimum value in each data set.Data are that mode is got one by one , it is required for calculating the average value of this data and the set of all data before when often sending a sets of data.
Traditional mean value calculation scheme needs all data being all saved in a set, then every time will be new The data come are added directly into set, are then carried out global traversal to the set again and are calculated after removing maximum and minimum value Go out average value to be used.Following Railway Project in the implementation of traditional scheme be present:1 all data are required for being buffered Come, substantial amounts of memory cost can be occupied by caching these data;2nd, full dose time can be carried out to all data by calculating average value every time Go through, can so cause the time serious length of side for calculating average value so that the time overhead for obtaining average value becomes big.
Urgently providing one kind being capable of low EMS memory occupation, efficient client end AP P data mean value calculation method and system.
The content of the invention
The present invention is to overcome above mentioned problem or solve the above problems at least in part, there is provided client end AP P data is averaged Value calculating method.
According to an aspect of the present invention, there is provided a kind of client end AP P data mean value calculation method, including:
Step 1, when the APP targets data set gets a new numerical value temp, pre-defined institute is obtained APP targets data set is stated in once mean value calculation on carrying out, the numerical value calculated is participated in the target data set Number variable numlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith all numbers It is worth average value variable avglast
Step 2, based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP targets item data Current all number average value avg of collectionnow
Further, business datum export request is obtained in the step 1, is also included before the step 1:Initializing variable numlast=0, maxlast、minlastAnd avglastFor sky.
Further, the step 2 further comprises:As the numlastWhen=0, avgnow=temp.
Further, the step 2 further comprises:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast= temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
Further, the step 2 further comprises:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, Make maxnow=temp, minnow=minlast
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP Current minimum value in target data set.
According to another aspect of the present invention, there is provided a kind of client end AP P data mean value calculation system, including:
Acquisition module, for when obtaining a new numerical value temp of the APP targets data set, obtaining pre-defined The APP targets data set participates in the numerical value calculated in once mean value calculation on carrying out in the target data set Individual number variable numlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith it is all Number average value variable avglast
Computing module, for based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP targets Current all number average value avg of data setnow
Further, the computing module is further used for:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast= temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
Further, the computing module is further used for:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, Make maxnow=temp, minnow=minlast
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP Current minimum value in target data set.
According to a further aspect of the invention, there is provided a kind of equipment of client end AP P data mean value calculation method, including:
At least one processor;And
At least one memory being connected with the processor communication, wherein:
The memory storage has and by the programmed instruction of the computing device, the processor described program can be called to refer to Order is able to carry out any described method as described above.
According to a further aspect of the invention, there is provided a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that described non- Transitory computer readable storage medium stores computer instruction, and it is any as described above that the computer instruction performs the computer Described method.
The application proposes client end AP P data mean value calculation method and system, and methods described is compared in traditional scheme Cache all data and travel through all data and memory cost is significantly reduced in the scheme of average value (because not caching to obtain All data points), while there is the beneficial effect for being capable of quick obtaining average value.
Brief description of the drawings
Fig. 1 is according to a kind of overall flow schematic diagram of client end AP P data mean value calculation method of the embodiment of the present invention;
Fig. 2 is the general frame signal according to another client end AP P data mean value calculation system of the embodiment of the present invention Figure;
Fig. 3 is according to a kind of structural framing of the equipment of client end AP P data mean value calculation method of the embodiment of the present invention Schematic diagram.
Embodiment
With reference to the accompanying drawings and examples, the embodiment of the present invention is described in further detail.Implement below Example is used to illustrate the present invention, but is not limited to the scope of the present invention.
Present invention seek to address that propose a set of more excellent moving average for the above mentioned problem in background technology Computational methods, the speed for obtaining average value can be greatly improved while memory cost is reduced by the implementation of this programme, Reduce time overhead.
Such as Fig. 1, in a specific embodiment for showing the present invention, a kind of client end AP P data mean value calculation method Overall flow figure.Generally, including:
Step 1, when the APP targets data set gets a new numerical value temp, pre-defined institute is obtained APP targets data set is stated in once mean value calculation on carrying out, the numerical value calculated is participated in the target data set Number variable numlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith all numbers It is worth average value variable avglast
Step 2, based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP targets item data Current all number average value avg of collectionnow
In the above embodiment of the present invention, following variable is defined first.
numlast:For representing the number of the last data for participating in average value;maxlast:For representing the last Maximum in the data acquisition system of participation;minlast:The minimum value in data acquisition system for representing the last participation; avglast:The average value in data acquisition system for representing the last participation.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute Also include before stating step 1:Initializing variable numlast=0, maxlast、minlastAnd avglastFor sky.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute Step 2 is stated to further comprise:The step 2 further comprises:As the numlastWhen=0, avgnow=temp.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute Step 2 is stated to further comprise:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast= temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute Step 2 is stated to further comprise:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, Make maxnow=temp, minnow=minlast
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP Current minimum value in target data set.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute The method of stating specifically includes following steps.
In order to facilitate the realization of whole embodiment is described, several changes are defined as follows first in scheme described in the present embodiment Amount, this case are averaged again.
The number num of data acquisition systemlast:For representing the last data for participating in average value in target data set Number.
Minimum value minlast:For representing the minimum value in target data set in the last data acquisition system participated in.
Maximum maxlast:For representing the maximum in target data set in the last data acquisition system participated in.
Average value avglast:For representing the average value in target data set in the last data acquisition system participated in.
Due to num difference, the algorithm of average value needs point three kinds of situations.
The first situation:Work as numlastDuring less than 2, average value is calculated in the conventional mode.(do not consider maximum Value, minimum value (not subtracting maximum, minimum value), because if now further contemplating the situation of max min, it may appear that flat 0) average is.
Second of situation:Work as numlastDuring more than or equal to 2, according to
To calculate average value;Wherein, the maxnow For current greatest measure in the APP targets data set, the minnowFor current minimum in the APP targets data set Numerical value.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation method, institute The method of stating specifically includes following steps:
By max during initializationlast、minlast、avglastSky is initialized as, by numlastIt is initialized as 0.
numlast=0;minlast=null;maxlast=null;avglast=null.
When getting first data:When there is first data temp to arrive, first determine whether temp data with minlast、maxlastMagnitude relationship, if it is decided that during find minlast、maxlastIt is empty, min is now just setlast、 maxlastValue be temp value.Next all data sums before temp data are calculated, computational methods are to pass through calling avglast*numlastIf calculate total discovery avglastIt is empty, because empty can not participate in calculating, avg hereinlastAssignment It is the data temp come for the first time;Data are initialized to variable defined above after arriving and assign corresponding value.
Calculate and complete to need to num after average valuelastVariable add one operation, that is, numlast=numlast+ 1。
Citing:Temp=1;
Then now:Numlast=0;
Minlast=1;
Maxlast=1;
avgnow=avglast=temp=1;
Avg is calculatednowAfterwards, numlast=0+1=1
When getting second data:When thering is second data temp2 to come, this data and first are first determined whether The min of secondary cachinglastAnd maxlastValue be compared, if temp2 compares minlastIt is also small, then now need by minlastValue be entered as temp2 again, otherwise do not change minlastValue.If temp2 value compares maxlastValue it is big, Now need maxlastValue be entered as temp2, otherwise do not change maxlastValue.
Next need to try to achieve average value after having handled maximin, now the computational methods of average value are avglast= (temp+temp2)/numlast
Next simple illustration, " avg are carried out to this computational methodslast*numlast" it is before temp2 data arrive All data cumulative sum, what "+temp2 " was represented is plus the data that newly arrive, "-maxlast-minlast" represent be Maximin therein, that is, all data sums (having got rid of the result after maximin) are subtracted, divided by “numlast+ 1 " average value of all data is tried to achieve, and the result that average value is tried to achieve is assigned to avglastVariable.
Calculate and complete to need to num after average valuelastVariable add one operation:numlast=numlast+ 1, complete Calculation process when second of data reaches.
Citing:Temp2=2,
Then now, Numlast=1;
Minlast=1;
Maxlast=2;
avgnow=avglast=(1+2)/(numlast+ 1)=1.5;
Avg is calculatednowAfterwards, numlast=1+1=2.
When getting the 3rd data:When thering is the 3rd data temp3 to come, this data and upper one are first determined whether The min of secondary cachinglastAnd maxlastValue be compared, if temp3 compares minlastIt is also small, then now need by minlastValue be entered as temp3 again, otherwise do not change minlastValue.If temp3 value compares maxlastValue will also Greatly, now need maxlastValue be entered as temp3, otherwise maxlastValue do not change.
Next need to try to achieve average value after having handled maximin, now the computational methods of average value are avgnow= (avglast*numlast+temp3–maxnow–minnow)/(numlast+1);Next this computational methods is carried out briefly It is bright, " avglast*numlast" show be temp3 data arrive before all data cumulative sum, "+temp3 " represent It is plus the data newly to arrive, "-maxnow–minnow" what is represented is to subtract maximin therein, that is, all data Sum (has got rid of the result after maximin), divided by " numlast+ 1 " average value of all data is tried to achieve, and will The result that average value is tried to achieve pays avgnowVariable.
Calculate and complete to need to num after average valuelastVariable add one operation, that is, numlast=numlast+ 1, calculation process when arrival this completes second of data.
Citing:Temp3=3,
Then now, Numlast=2;
Minlast=1;
Maxlast=3;
avgnow=avglast=(1.5*2+3-3-1)/3=2/3;
Avg is calculatednowAfterwards, numlast=2+1=3.
When getting fourth data:When thering is fourth data temp4 to come, first determine whether this data with The min of last time cachinglastAnd maxlastValue be compared, if temp4 compares minlastIt is also small, then now need by minlastValue be entered as temp4 again, obtain minnow, otherwise do not change minlastValue.If temp4 value compares maxlast Value also now to need max greatlylastValue be entered as temp4, obtain maxnow, otherwise do not change maxlastValue.
Next need to try to achieve average value after having handled maximin, now the computational methods of average value are:
This computational methods of following team carry out simple illustration, " avglast×numlast+temp3-maxnow-minnow” The cumulative sum of all data before expression temp4 data arrivals, what "+temp3 " was represented is to add the data newly to arrive, "- maxnow-minnow" what is represented is to subtract maximin therein, that is, all data sums (have got rid of minimax Result after value), divided by numlast+ 1 tries to achieve the average value of all data, and the result that average value is tried to achieve pays avglast Variable.
Calculate and complete to need to num after average valuelastVariable add one operation, that is, numlast=numlast+ 1, calculation process when arrival this completes second of data.
Citing:Temp4=4,
Then now, Numlast=3;
Minlast=1;
Maxlast=4;
avgnow=avglast=((2/3) * 3+3+1+4-4-1)/4=5/4;
Avg is calculatednowAfterwards, numlast=3+1=4.
When obtaining the 5th data.
Citing:Temp5=5,
Then now, Numlast=4;
Minlast=1;
Maxlast=5;
avgnow=avglast=((5/4) * 4+4+1+5-5-1)/5=9/5;
Avg is calculatednowAfterwards, numlast=3+1=4.
When n-th has data arrival:When n-th has data arrival, the handling process of whole data as above one The processing method of step is similar, the average value for trying to achieve all data that can be quickly.
Such as Fig. 2, in a specific embodiment for showing the present invention, a kind of client end AP P data mean value calculation system, bag Include:
Acquisition module A1, when the APP targets data set gets a new numerical value temp, obtain the APP Target data set participates in the numerical value number calculated in once mean value calculation on carrying out in the target data set numlast, greatest measure max in the target data setlast, minimum value minlastWith all number average values avglast
Computing module A2, for based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP mesh Mark current all number average value avg of data setnow
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation system, also Including initialization module:For initializing variable numlast=0, maxlast、minlastAnd avgnowFor sky.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation system, institute Computing module is stated to be further used for:
As the numlast=0, the maxlast、minlastAnd avglastAll it is space-time, avgnow=temp, and by described in Temp value is assigned to the max respectivelylast、minlastAnd avglast, numlast=1.
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation system, institute Computing module is stated to be further used for:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast= temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
On the basis of any above-mentioned specific embodiment of the present invention, a kind of client end AP P data mean value calculation system, institute Computing module is stated to be further used for:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, Make maxnow=temp, minnow=minlast
The avg is calculated by below equationnow
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP Current minimum value in target data set.
Fig. 3 shows the structured flowchart of the equipment of the client end AP P data mean value calculation method of the embodiment of the present application.
Reference picture 3, the equipment of the client end AP P data mean value calculation method, including:Processor (processor) 301st, memory (memory) 302 and bus 303;
Wherein,
The processor 301 and memory 302 complete mutual communication by the bus 303;
The processor 301 is used to call the programmed instruction in the memory 302, to perform above-mentioned each method embodiment The method provided, such as including:Step 1, when the APP targets data set gets a new numerical value temp, obtain The APP targets data set is taken in once mean value calculation on carrying out, the number calculated is participated in the target data set It is worth number numlast, greatest measure max in the target data setlast, minimum value minlastWith all number average values avglast;Step 2, based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP targets data set Current all number average value avgnow
The present embodiment discloses a kind of computer program product, and the computer program product includes being stored in non-transient calculating Computer program on machine readable storage medium storing program for executing, the computer program include programmed instruction, when described program instruction is calculated When machine performs, computer is able to carry out the method that above-mentioned each method embodiment is provided, such as including:Step 1, as the APP When target data set gets a new numerical value temp, it is once average on carrying out to obtain the APP targets data set When value calculates, the numerical value number num calculated is participated in the target data setlast, maximum in the target data set Numerical value maxlast, minimum value minlastWith all number average value avglast;Step 2, based on the numlast、maxlast、 minlast、avglastAnd temp, calculate current all number average value avg of the APP targets data setnow
The present embodiment provides a kind of non-transient computer readable storage medium storing program for executing, the non-transient computer readable storage medium storing program for executing Computer instruction is stored, the computer instruction makes the computer perform the method that above-mentioned each method embodiment is provided, example Such as include:Step 1, when the APP targets data set gets a new numerical value temp, the APP target items are obtained Data set participates in the numerical value number num calculated in once mean value calculation on carrying out in the target data setlast, institute State the greatest measure max in target data setlast, minimum value minlastWith all number average value avglast;Step 2, base In the numlast、maxlast、minlast、avglastAnd temp, calculate current all numerical value of the APP targets data set Average value avgnow
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program Upon execution, the step of execution includes above method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or light Disk etc. is various can be with the medium of store program codes.
The embodiments such as the equipment of client end AP P data mean value calculation method described above are only schematical, The wherein described unit illustrated as separating component can be or may not be physically separate, be shown as unit Part can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple networks On unit.Some or all of module therein can be selected to realize the purpose of this embodiment scheme according to the actual needs. Those of ordinary skill in the art are not in the case where paying performing creative labour, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on The part that technical scheme substantially in other words contributes to prior art is stated to embody in the form of software product, should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some fingers Make to cause a computer equipment (can be personal computer, server, or network equipment etc.) to perform each implementation Method described in some parts of example or embodiment.
The algorithm for the average value that the above embodiment of the present invention cleverly completes all data by defining each variable is set Meter, compared to caching all data in traditional scheme and travel through all data come in obtaining and being significantly reduced in the scheme of average value Expense (because without all data points of caching) is deposited, while maximin can be rapidly obtained, because needing only to Comparing a data can obtain, and need to travel through all data in traditional scheme and repeatedly relatively obtain.Asked in this programme Obtain average value get without carrying out traversing operation can to all data, greatly improved compared to the traversal in traditional scheme Obtain the speed of average value.
Finally, the present processes are only preferable embodiment, are not intended to limit the scope of the present invention.It is all Within the spirit and principles in the present invention, any modification, equivalent substitution and improvements made etc., the protection of the present invention should be included in Within the scope of.

Claims (10)

1. client end AP P data mean value calculation method, it is characterised in that including:
Step 1, when the APP targets data set gets a new numerical value temp, the pre-defined APP is obtained Target data set participates in the numerical value number variable calculated in once mean value calculation on carrying out in the target data set numlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith all digital averages It is worth variable avglast
Step 2, based on the numlast、maxlast、minlast、avglastAnd temp, calculate working as the APP targets data set Preceding all number average value avgnow
2. the method as described in claim 1, it is characterised in that also include before the step 1:Initializing variable numlast=0, maxlast、minlastAnd avglastFor sky.
3. the method as described in claim 1, it is characterised in that the step 2 further comprises:As the numlastWhen=0, avgnow=temp.
4. the method as described in claim 1, it is characterised in that the step 2 further comprises:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast=temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
5. method as claimed in claim 1, it is characterised in that the step 2 further comprises:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, order maxnow=temp, minnow=minlast
<mrow> <msub> <mi>avg</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>avg</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>&amp;times;</mo> <msub> <mi>num</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>+</mo> <mi>t</mi> <mi>e</mi> <mi>m</mi> <mi>p</mi> <mo>-</mo> <msub> <mi>max</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> <mo>-</mo> <msub> <mi>min</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> </mrow> <mrow> <msub> <mi>num</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>+</mo> <mn>1</mn> </mrow> </mfrac> </mrow>
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP targets Current minimum value in data set.
A kind of 6. client end AP P data mean value calculation system, it is characterised in that including:
Acquisition module, it is pre-defined described for when obtaining a new numerical value temp of the APP targets data set, obtaining APP targets data set participates in the numerical value number calculated in once mean value calculation on carrying out in the target data set Variable numlast, greatest measure variable max in the target data setlast, minimum value variable minlastWith all numerical value Average value variable avglast
Computing module, for based on the numlast、maxlast、minlast、avglastAnd temp, calculate the APP targets item number According to current all number average value avg of collectionnow
7. system as claimed in claim 6, it is characterised in that the computing module is further used for:
As the numlastWhen=1;
If the temp < minlast, make minlast=temp;If the temp > maxlast, make maxlast=temp;
avgnow=(temp+minlast)/2 or avgnow=(temp+maxlast)/2。
8. system as claimed in claim 6, it is characterised in that the computing module is further used for:
As the numlastWhen >=2;
If the temp < minlast, make minnow=temp, maxnow=maxlast;If the temp > minlast, order maxnow=temp, minnow=minlast
<mrow> <msub> <mi>avg</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> <mo>=</mo> <mfrac> <mrow> <msub> <mi>avg</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>&amp;times;</mo> <msub> <mi>num</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>+</mo> <mi>t</mi> <mi>e</mi> <mi>m</mi> <mi>p</mi> <mo>-</mo> <msub> <mi>max</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> <mo>-</mo> <msub> <mi>min</mi> <mrow> <mi>n</mi> <mi>o</mi> <mi>w</mi> </mrow> </msub> </mrow> <mrow> <msub> <mi>num</mi> <mrow> <mi>l</mi> <mi>a</mi> <mi>s</mi> <mi>t</mi> </mrow> </msub> <mo>+</mo> <mn>1</mn> </mrow> </mfrac> </mrow>
Wherein, the maxnowFor current greatest measure in the APP targets data set, the minnowFor the APP targets Current minimum value in data set.
A kind of 9. equipment of client end AP P data mean value calculation, it is characterised in that including:
At least one processor;And
At least one memory being connected with the processor communication, wherein:
The memory storage has can be by the programmed instruction of the computing device, and the processor calls described program instruction energy Enough perform the method as described in claim 1 to 5 is any.
10. a kind of non-transient computer readable storage medium storing program for executing, it is characterised in that the non-transient computer readable storage medium storing program for executing is deposited Computer instruction is stored up, the computer instruction makes the computer perform the method as described in claim 1 to 5 is any.
CN201710931462.9A 2017-10-09 2017-10-09 Client end AP P data mean value calculation method and system Pending CN107766297A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710931462.9A CN107766297A (en) 2017-10-09 2017-10-09 Client end AP P data mean value calculation method and system
PCT/CN2017/120119 WO2019071855A1 (en) 2017-10-09 2017-12-29 Client app data average value calculation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710931462.9A CN107766297A (en) 2017-10-09 2017-10-09 Client end AP P data mean value calculation method and system

Publications (1)

Publication Number Publication Date
CN107766297A true CN107766297A (en) 2018-03-06

Family

ID=61266480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710931462.9A Pending CN107766297A (en) 2017-10-09 2017-10-09 Client end AP P data mean value calculation method and system

Country Status (2)

Country Link
CN (1) CN107766297A (en)
WO (1) WO2019071855A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621400A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 History performance data collection method and performance data collecting system
CN101701973A (en) * 2009-11-18 2010-05-05 北京普源精电科技有限公司 Data acquisition device and method thereof
CN101706524A (en) * 2009-11-18 2010-05-12 北京普源精电科技有限公司 Data collection device and data collection method thereof
CN106572444A (en) * 2016-11-07 2017-04-19 工业和信息化部电信研究院 Longitude and latitude information updating method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101621400A (en) * 2008-06-30 2010-01-06 中兴通讯股份有限公司 History performance data collection method and performance data collecting system
CN101701973A (en) * 2009-11-18 2010-05-05 北京普源精电科技有限公司 Data acquisition device and method thereof
CN101706524A (en) * 2009-11-18 2010-05-12 北京普源精电科技有限公司 Data collection device and data collection method thereof
CN106572444A (en) * 2016-11-07 2017-04-19 工业和信息化部电信研究院 Longitude and latitude information updating method and device

Also Published As

Publication number Publication date
WO2019071855A1 (en) 2019-04-18

Similar Documents

Publication Publication Date Title
CN105446979B (en) Data digging method and node
CN106813568A (en) object measuring method and device
CN111176820A (en) Deep neural network-based edge computing task allocation method and device
CN109542512A (en) A kind of data processing method, device and storage medium
CN104915717A (en) Data processing method, knowledge base reasoning method and related device
CN108304256B (en) Task scheduling method and device with low overhead in edge computing
CN110460650A (en) The decision-making technique and device of unloading are calculated under multiple edge server scene
CN108008936A (en) A kind of data processing method, device and electronic equipment
CN107729570A (en) Data migration method and device for server
WO2023197864A1 (en) Method and device for generating calling topological graph
CN107798024A (en) A kind of trip purpose ground recommendation process method and device
CN107766297A (en) Client end AP P data mean value calculation method and system
CN105184372B (en) Knowledge network construction method and device
CN110597248B (en) Park unmanned intelligent inspection method, device, equipment and storage medium
CN107766149A (en) A kind of method and device of the ZooKeeper cluster configurations based on DUBBO
CN104598567B (en) A kind of method of the data statistics re-scheduling based on Hadoop MapReduce programming frameworks
CN106919712A (en) The data statistical approach and system of form
CN115865607A (en) Distributed training computing node management method and related device
CN115841197A (en) Path planning method, device, equipment and storage medium
CN113591999B (en) End-edge cloud federal learning model training system and method
CN115293978A (en) Convolution operation circuit and method, image processing apparatus
CN113905066A (en) Networking method of Internet of things, networking device of Internet of things and electronic equipment
CN107506572A (en) The method and apparatus for obtaining the height of target point
CN109801332A (en) Determine the method and apparatus of Minkowski dimension
CN112822113A (en) Method and device for acquiring routing address, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180306

RJ01 Rejection of invention patent application after publication