CN106443163A - Electric energy metering data processing method and electric energy metering data processing device - Google Patents
Electric energy metering data processing method and electric energy metering data processing device Download PDFInfo
- Publication number
- CN106443163A CN106443163A CN201610843054.3A CN201610843054A CN106443163A CN 106443163 A CN106443163 A CN 106443163A CN 201610843054 A CN201610843054 A CN 201610843054A CN 106443163 A CN106443163 A CN 106443163A
- Authority
- CN
- China
- Prior art keywords
- value
- numerical value
- data
- bit
- reserved bit
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R22/00—Arrangements for measuring time integral of electric power or current, e.g. electricity meters
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an electric energy metering data processing method and an electric energy metering data processing device. The method comprises the following steps: getting data to be processed, wherein the data to be processed is measurement error data which is obtained according to a measured value and a conventional true value; and inputting the data to be processed to a default algorithm to get a result corresponding to the data to be processed, wherein the default algorithm is used to round off the data to be processed. The technical problem in the prior art that the labor cost is high and the data accuracy is low as error data is rounded off manually in electric energy metering is solved.
Description
Technical field
The present invention relates to data processing field, in particular to a kind for the treatment of method and apparatus of electric energy measurement data.
Background technology
The data processing of measurement result, is an important step of metrology and measurement, and only rational data processing, can just take
Obtain rational result.Data processing neither should improve certainty of measurement, can not reduce certainty of measurement, and effectively should reflect
Objective certainty of measurement, Error Theory is the important foundation for measuring data processing.
The numerical value revision of the convention, refers to that the digit of logarithm value is defined a kind of process that chooses.At work, often run into many
The numerical value of digit, but be actually needed be limit less digit, that is to say, that there is no need to retain unnecessary digit, reply
Numerical value carries out the revision of the convention.In the every field of metering, the data revision of the convention can be all used.
For current electric energy measurement field (such as electric energy meter), typically calculated using step-by-step counting, relative method
Error, and typically adopt relative error.The design and calculation method of each manufacturer perhaps has difference, but its rationale for adopting is just
The ratio for being measured value with the absolute error of conventional true value and measured conventional true value.This mistake that mathematical calculation draws is passed through
Difference, its result length may be a lot, but do not possessed how many objective sense.Therefore the numerical value after the revision of the convention more can be convenient anti-
Reflect measurement result.
In People's Republic of China's national metrological verification regulations, it is desirable to which verification result is processed, for measurement data
The revision of the convention is specified.For example《JJG307-2006JI electromechanical AC energy meter》Clearly propose to enter line number to measurement result
According to the revision of the convention, and clear stipulaties:Judge whether electric energy meter relative error meets related request, the result after the revision of the convention is defined without exception.
But for the personnel for newly working, remember and understand rule for rounding off, need the time.Carrying out data processing
When, it is also possible to make a mistake.In the event of mistake, verification result can be affected, and this mistake is difficult to find.Even work is for many years
Old employee, it is clear to be typically not easy to remember completely for data processing rule, when needs also can flipbook consult.Educational background is relatively
Low employee, the revision of the convention result for oneself is held the suspicious attitude, and needs repeatedly to verify to confirm correctness.
In addition to the mistake in computation for artificially causing, the artificial efficiency for calculating is also very low.In electric energy metrical field,
Substantial amounts of data processing work is inevitably run into.Even for skilled employee, if 4 can be processed according to per minute
The individual data revision of the convention processes 10000 data, it is also desirable to which continuous firing is exactly more than 60 hour in 2500 minutes calculating.People
Work cost and its high.
Artificial revision of the convention process is carried out to the error information in electric energy metrical in prior art, cause cost of labor high and
The low problem of the data precision, not yet proposes effective solution at present.
Content of the invention
A kind for the treatment of method and apparatus of electric energy measurement data are embodiments provided, at least to solve prior art
In carry out artificial revision of the convention process to the error information in electric energy metrical, cause cost of labor high and the low technology of the data precision asked
Topic.
A kind of one side according to embodiments of the present invention, there is provided processing method of electric energy measurement data, including:Obtain
Pending data, wherein, pending data is that measurement error data, measurement error data are obtained with conventional true value according to measured value
Arrive;Pending data is input into preset algorithm, the corresponding result of pending data is obtained, wherein, preset algorithm is used for treating
Processing data carries out revision of the convention process.
Another aspect according to embodiments of the present invention, additionally provides a kind of processing meanss of electric energy measurement data, including:Obtain
Delivery block, for obtaining pending data, wherein, pending data is that measurement error data, measurement error data are according to measurement
Value is obtained with conventional true value;Computing module, for pending data is input into preset algorithm, obtains pending data corresponding
As a result, wherein, preset algorithm is used for carrying out revision of the convention process to pending data.
It should be noted that the process of the error information in prior art for electric energy measurement data is located still through artificial
The means of reason are processed to data, and when data being carried out with revision of the convention process using artificial processing method, efficiency is low, the people of consumption
Power is big, time length and accuracy is extremely difficult to 100%.
In embodiments of the present invention, pending data is obtained, pending data is input into preset algorithm, is obtained pending
The corresponding result of data.Such scheme carries out revision of the convention process by the more pending data of preset algorithm number of bits, with low people
Member consumes the digit less data for having obtained accuracy 100% with time loss, so as to solve to electric energy in prior art
Error information in metering carries out artificial revision of the convention process, causes the high and the data precision low technical problem of cost of labor.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description is used for explaining the present invention, does not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the processing method of electric energy measurement data according to embodiments of the present invention;
Fig. 2 a is a kind of result schematic diagram for carrying out revision of the convention process by algorithm to pending data according to the application;
Fig. 2 b be according to the result schematic diagram for carrying out revision of the convention process for second of the application by algorithm to pending data;
Fig. 2 c is to carry out the result schematic diagram of revision of the convention process to pending data by algorithm according to the third of the application;
Fig. 2 d be according to the 4th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data;
Fig. 2 e be according to the 5th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data;
Fig. 2 f be according to the 6th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data;
Fig. 3 a be according to the embodiment of the present application a kind of optional while process 6 data schematic diagram;
Fig. 3 b be according to the embodiment of the present application a kind of optional while process 6 data result schematic diagram;
Fig. 4 is to carry out revision of the convention process by the method for the present embodiment to pending data according to a kind of of the embodiment of the present application
The schematic diagram of the time for being used;
Fig. 5 is a kind of signal for carrying out revision of the convention process by the multiple data of Matlab program according to the embodiment of the present application
Figure;And
Fig. 6 is a kind of schematic diagram of the processing meanss of the electric energy measurement data according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a present invention part, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment obtained under the premise of creative work is not made by member, should all belong to the model of present invention protection
Enclose.
It should be noted that description and claims of this specification and the term " first " in above-mentioned accompanying drawing, "
Two " be etc. for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except here diagram or
Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, and for example, the process, method, system, product or the equipment that contain series of steps or unit are not necessarily limited to
Those steps that clearly lists or unit, but may include clearly not list or for these processes, method, product
Or intrinsic other steps of equipment or unit.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the processing method of electric energy measurement data, explanation is needed
It is can to execute in the such as computer system of one group of computer executable instructions the step of the flow process of accompanying drawing is illustrated,
And, although show logical order in flow charts, but in some cases, can be executed with the order being different from herein
Shown or described step.
Fig. 1 is the flow chart of the processing method of electric energy measurement data according to embodiments of the present invention, as shown in figure 1, the party
Method comprises the steps:
Step S102, obtains pending data, and wherein, pending data is measurement error data, measurement error data root
Obtain with conventional true value according to measured value.
Specifically, above-mentioned pending data can be using the calculated margin of error of the methods such as step-by-step counting, relative method
According to, and relative error is typically adopted, but no matter using the method for any calculation error.Its rationale be exactly measured value with about
Determine the absolute error of true value and the ratio of measured conventional true value.Need it is noted that this mathematical calculation that passed through draws
Error, its result length may be a lot.
Step S104, pending data is input into preset algorithm, obtains the corresponding result of pending data, wherein, in advance
Imputation method is used for carrying out revision of the convention process to pending data.
The corresponding result of above-mentioned pending data is digit less data for pending data, pending
The digit of the corresponding result of data can be arranged according to demand.
Specifically, the above-mentioned numerical value revision of the convention refers to that the digit of logarithm value is defined a kind of process that chooses.In practical application
In often run into the numerical value of long number, but be actually needed is the less digit for limiting, that is to say, that there is no need to retain
Unnecessary digit, answers logarithm value to carry out the revision of the convention.For example, the pending data in above-mentioned steps can be just a lot of number of digit
According to, a lot of in pending data digit, but in the case that the position of actual demand is less, pending data is carried out at the revision of the convention
Reason.
It should be noted that the process of the error information in prior art for electric energy measurement data is located still through artificial
The means of reason are processed to data, and when data being carried out with revision of the convention process using artificial processing method, efficiency is low, the people of consumption
Power is big, time length and accuracy is extremely difficult to 100%.
In a kind of optional embodiment, above-mentioned preset algorithm can pass through programming realization, as preset algorithm is according to repairing
About rule build, therefore using preset algorithm, revision of the convention process is carried out to electric energy measurement data, can not only reach 100% correct
Rate, additionally it is possible to reduce manpower consumption and time loss, high degree improve data-handling efficiency.
From the foregoing, it will be observed that the application above-mentioned steps obtain pending data, pending data is input into preset algorithm, is obtained
The corresponding result of pending data.Such scheme carries out revision of the convention process by the more pending data of preset algorithm number of bits,
The digit less data of accuracy 100% has been obtained with low personnel attrition and time loss.
Optionally, according to the above embodiments of the present application, pending data is input into preset algorithm, obtains pending data
Corresponding result, including:
Step S1041, obtains default revision of the convention spacing.
Step S1043, calculates the business of pending data and revision of the convention spacing, as the first result data.
Step S1045, carries out presetting process to the first result data, obtains the second result data.
Step S1047, calculates the product of the second result data and revision of the convention spacing, as the corresponding result of pending data.
From the foregoing, it will be observed that the application above-mentioned steps obtain default revision of the convention spacing, pending data and revision of the convention spacing is calculated
Business, as the first result data, carries out presetting process to the first result data, obtains the second result data, calculate the second result
The product of data and revision of the convention spacing, used as the corresponding result of pending data.Such scheme is achieved and is calculated by preset algorithm
The purpose of revision of the convention process is carried out to pending data.
Optionally, according to the above embodiments of the present application, the first result data is carried out process is preset, obtains the second number of results
According to, including:
Step S1049, obtains default reservation digit.
Step S1051, obtains according to the first result data and retains bit value.
Step S1053, carries out plus-minus operation according to bit value and the numerical value after reserved bit is retained to retaining bit value.
From the foregoing, it will be observed that the application above-mentioned steps obtain default reservation digit, reserved bit is obtained according to the first result data
Numerical value, carries out plus-minus operation according to bit value and the numerical value after reserved bit is retained to retaining bit value.Such scheme is determining
After retaining digit, according to the demand for retaining digit, the numerical value of reserved bit is operated accordingly, so as to pending data
Carry out revision of the convention process.
Optionally, according to the above embodiments of the present application, according to reservation bit value and the numerical value after reserved bit to reserved bit
Numerical value carries out plus-minus operation, including:
Step S1055, in the case that after reserved bit, the numerical value of one is any one numerical value in the first numerical value set,
Give up the numerical value after reserved bit, and keep reservation bit value constant.
Specifically, above-mentioned first data acquisition system can be { 0,1,2,3,4 }.
Fig. 2 a is a kind of result schematic diagram for carrying out revision of the convention process by algorithm to pending data according to the application, knot
Close shown in Fig. 2 a, in a kind of optional embodiment, measurement error is 0.52499, to retain digit as 2, revision of the convention spacing is made for 5
For example, divided by revision of the convention spacing 5, the first result data is obtained for 0.104998, it is 4 that reserved bit is the next bit of 0, reserved bit,
Therefore latter several of reserved bit give up, and reserved bit is also constant, obtain the second result data 0.10, then are multiplied by revision of the convention spacing 5, finally
Obtain revision of the convention result 0.50.
Fig. 2 b be according to the result schematic diagram for carrying out revision of the convention process for second of the application by algorithm to pending data,
In conjunction with shown in Fig. 2 b, in a kind of optional embodiment, measurement error is 0.5749, and still to retain digit as 2, revision of the convention spacing is
5 as an example, divided by revision of the convention spacing 5, obtains the first result data for 0.11498, and reserved bit is 1, and the next bit of reserved bit
For 4, therefore retain invariant position, the numerical value after reserved bit is given up, and the second result data 0.11 is obtained, then revision of the convention spacing 5 is multiplied by,
Finally obtain revision of the convention result 0.55.
Step S1057, in the case that after reserved bit, the numerical value of one is any one numerical value in second value set,
Give up the numerical value after reserved bit, and add one by bit value is retained.
Specifically, above-mentioned second data acquisition system can be { 6,7,8,9 }.
Fig. 2 c is to carry out the result schematic diagram of revision of the convention process to pending data by algorithm according to the third of the application,
In conjunction with shown in Fig. 2 c, in a kind of optional embodiment, measurement error is 0.4299, and to retain digit as 2, revision of the convention spacing is 5
As an example, divided by revision of the convention spacing 5, the first result data is obtained for 0.08598, reserved bit is 8, and the next bit of reserved bit is
5, and afterwards several still suffer from non-zero numerical value, therefore reserved bit adds 1, and the numeral after reserved bit is given up, and obtains the second result data and is
0.09, then revision of the convention spacing 5 is multiplied by, finally obtain revision of the convention result 0.45.
Step S1059, in the case that after reserved bit, the numerical value of one is default value, if after reserved bit one afterwards
Non-zero values are still suffered from, then in the case of giving up the numerical value after reserved bit, and adds one by bit value is retained.
Fig. 2 d be according to the 4th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data,
In conjunction with shown in Fig. 2 d, in a kind of optional embodiment, measurement error is 0.52501, and to retain digit as 2, revision of the convention spacing is 5
As an example, divided by revision of the convention spacing 5, the first result data is obtained for 0.105002, reserved bit is 0, and the next bit of reserved bit
For 5, and afterwards several still suffer from non-zero numerical value, therefore reserved bit adds 1, and the numeral after reserved bit is given up, and obtains the second result data
For 0.11, then revision of the convention spacing 5 is multiplied by, finally obtains revision of the convention result 0.55.
Step S1061, after reserved bit the numerical value of one be default value in the case of, if after reserved bit one it
In the case of there are no non-zero values afterwards, then judge to retain the parity of bit value, if reservation bit value is odd number, to give up
Numerical value after reserved bit, and add one by bit value is retained, if reservation bit value is even number, to give up the numerical value after reserved bit,
And keep reservation bit value constant.
Fig. 2 e be according to the 5th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data,
In conjunction with shown in Fig. 2 e, in a kind of optional embodiment, the measurement error as pending data is 0.525, to retain digit
For 2, revision of the convention spacing is 5 as an example, divided by revision of the convention spacing 5, obtains the first result data 0.105, and reserved bit is 0, and retains
The next bit of position is even number, therefore to retain invariant position for 5,0, and the next bit of reserved bit is given up, and obtains the second result data 0.10,
It is multiplied by revision of the convention spacing 5 again, finally obtains revision of the convention result and should be 0.50.
Fig. 2 f be according to the 6th kind of the application result schematic diagram for carrying out revision of the convention process by algorithm to pending data,
In conjunction with shown in Fig. 2 f, in an alternative embodiment, the measurement error as pending data is 0.3750, still to retain
Digit is 2, and revision of the convention spacing for 5 as an example, divided by revision of the convention spacing 5, obtains the first result data 0.075, and reserved bit is 7, and
The next bit of reserved bit is 5, afterwards no other non-zero numerical value again.Reservation bit value 5 is odd number, and therefore reserved bit adds 1, reserved bit
Next bit give up, obtain the second result data 0.08, then be multiplied by revision of the convention spacing 5, finally obtain revision of the convention result 0.40.
Arithmetic point the 4th is remained into it should be noted that giving tacit consent to due to Matlab program herein, and this computing only needs to protect
It is left to 2 after arithmetic point, therefore removes the 0 of the arithmetic point the 3rd, 4 of Matlab numerical value when record data, on
Embodiment is stated by taking the relative error revision of the convention processing method of 0.5 grade of electric energy meter as an example, the revision of the convention algorithm of the application title is carried out
Explanation.The revision of the convention spacing of the relative error of 0.5 grade of electric energy meter is 0.05, i.e.,:Relative error will remain into the after arithmetic point the 2nd
Position, and for 5 integral multiple, therefore revision of the convention spacing be.
Herein also, it should be noted data analysiss by situation in above 6, it has been found that by this Matlab algorithm
The result that program is obtained is completely correct, and covers all special circumstances, and therefore the accuracy of the algorithm is mathematical.Remove
Outside this superiority, can also be while calculating multiple numerical value using algorithm is changed.Fig. 3 a is can according to one kind of the embodiment of the present application
While choosing process 6 data schematic diagram, Fig. 3 b be according to the embodiment of the present application a kind of optional while process 6 data
Result schematic diagram, in conjunction with the example shown in Fig. 3 a and 3b, this 6 numerical value are stored in the matrix A of 3 × 2.Using certainly
The xiuyue function calculating formula of definition, was changed into matrix A where being needed originally error originated from input numerical value A_err, that is,
Xiuyue (0.525,2,5), can just obtain a new matrix, understand, each numerical value of new matrix is exactly original matrix in conjunction with Fig. 3 b
The revision of the convention value of each numerical value, and correspondence position is also constant.
Fig. 4 is to carry out revision of the convention process by the method for the present embodiment to pending data according to a kind of of the embodiment of the present application
The schematic diagram of the time for being used.In conjunction with shown in Fig. 4, revision of the convention process is carried out to the numerical value in above-mentioned six embodiments, is only taken
For 6.22 × 10-4s.
From the foregoing, it will be observed that the application above-mentioned steps are by carrying out to the reserved bit of pending data and the next bit of reserved bit
Judge, more expensive according to repairing, obtain the less revision of the convention data of digit.
Optionally, according to the above embodiments of the present application, obtained according to the first result data and retain bit value, including:
Step S1063, to the first result data expand n by after integer part take denary logarithm, wherein, n is
With ten as bottom, to retain numerical value of the digit as index.
Step S1065, in the case that logarithm is zero, determines integer part for retaining bit value.
Step S1067, in the case that logarithm is not zero, using the first result data expand n by after numerical value m is taken
Remaining, remainder result is determined for retaining bit value, wherein, m is the numerical value with ten as the truth of a matter, with logarithm as index.
In a kind of optional embodiment, so that pending data is 0.075 as an example, retain bit value for the 2nd of arithmetic point
Digit 7, then can expand 100 (n=10 herein to 0.0752=100) again, 7.5 are obtained, integer part is 0, then to be retained
Position is the 7 of integer part.
In an alternative embodiment, so that pending data is 0.675 as an example, retain bit value for the of arithmetic point
2 digits 7, then can expand 100 (n=10 herein to 0.6752=100) again, 67.5 are obtained, integer part is not 0, then to 10
(67.5 pairs 10 results of taking the logarithm are 1, herein m=10) remainder, obtains reserved bit for 7..
Optionally, according to the above embodiments of the present application, in the case that the numerical value after reserved bit is more than default value, really
After recognizing reserved bit, the numerical value of one is any one numerical value in the first numerical value set, in the numerical value after reserved bit less than pre-
If in the case of numerical value, after confirming reserved bit, the numerical value of one is any one numerical value in second value set.
For example, in a kind of optional embodiment, default value can be 5, then the first data acquisition system can be 0,1,2,
3,4 }, the second data acquisition system can be { 6,7,8,9 }.
Optionally, according to the above embodiments of the present application, preset algorithm passes through Matlab Program Generating.
The calculating function of a revision of the convention in a kind of optional embodiment, can be established by Matlab programming software,
It is function name to be named as xiuyue (A_err, res, sd), xiuyue, and function 3 parameters of presence, respectively A_err,
res、sd.A_err is represented to be needed by the measurement error of the revision of the convention, that is, measured value, is defined by the reading of measuring apparatus;Res generation
Table needs the scale for retaining, and relative error here will remain into the 2nd after arithmetic point, therefore Res=2;Sd generation
Table revision of the convention spacing, therefore sd=5.If measurement error is 0.525, the result after its revision of the convention to be expected, in Matlab software
Middle input xiuyue (0.525,2,5), can just obtain its corresponding revision of the convention result.Said procedure can be following program.
Function y=xiuyue (A_err, res, sd)
% this be Matlab software design self-defining function form, using function order, wherein xiuyue is letter
Several.This function needs 3 parameters, respectively A_err, res, sd.
% the method is used for calculating the revision of the convention.Single number can not only be calculated, and an array, such as pin can also be calculated
Revision of the convention calculating is carried out to each numerical value in the array of one 200 (OK) × 200 (arranging), after having calculated, result is shown and corresponding to
Position.
%A_err refers to m (OK) × n (arranging) array of measurement error (error) data composition, that is, the number by the revision of the convention
The array of value composition;
%res refers to the digit (reserve units) for needing to retain, if it is desired to error need to be saved in arithmetic point the
2, then res=2;
%sd refers to revision of the convention spacing (seperate distance), if revision of the convention spacing is 5, sd=5.
[m, n]=size (A_err);% obtains the ranks number of matrix, and m is line number, and n is columns
A_final=zeros (m, n);% builds a m row, n row and is all 0 array, it is therefore an objective to by institute's meter in need
The numerical value of calculation is stored in the array
For i=1:M% is calculated to all numerical value of m row, n columns group, is needed using for loop command
For j=1:n
The rule for rounding off coding of the complete part 1 of % herein below, according to this program, accurately can calculate
The numerical value revision of the convention.
Herein it should be noted that in said procedure, with pending data as 0.375 as an example, the first step,
0.375, divided by revision of the convention spacing 5, obtains 0.075.As arithmetic point second 7 is odd number, therefore give up for the 3rd 5,7 enter one.By
In needing the 2nd digit 7 of arithmetic point is got, that is, retain bit value, 10 scale power is therefore multiplied by, takes which
Position, so as to obtain retaining bit value.
Again for example, as a example by 0.675, need to get the 2nd digit 7 of arithmetic point, that is, retain bit value, then can be to f=
Log10 (c) (c is 67 here, between 10-100), so f is direct between 1-2, g=1, f are no longer 0, execute back
Complementation judges that sentence e=rem (c, 10^g), e exactly 67 are taken the remainder divided by 10, obtains the numerical value of e=7, i.e. reserved bit.
If carrying out revision of the convention process by artificial to data using method of the prior art, by taking skilled employee as an example,
If 4 data revisions of the convention can be processed calculating according to per minute, 10000 data are processed, it is also desirable to 2500 points of continuous firing
Clock, is exactly more than 60 hour.
Fig. 5 is a kind of signal for carrying out revision of the convention process by the multiple data of Matlab program according to the embodiment of the present application
Figure, in conjunction with shown in Fig. 5, rand order is used to generate the random number between 0-1, by the random number between the 0-1 of generation as
Measurement error.Rand (100) is used for representing one 100 × 100 matrix of generation, that is, the matrix being made up of 10000 numerical value,
All elements in the matrix are all the randoms number between 0-1, and it is stored in matrix A 0.Next using xiuyue (A0,
2,5), that is, carrying out revision of the convention process to each element in matrix A 0, wherein, revision of the convention spacing is 5, and it is 2 to retain digit, finally
Calculating time showing be 0.390268s, namely by manually needing the work for spending more than 60 hour to complete, by the application
The scheme that embodiment is provided, it is only necessary to can be achieved with less than 0.4s.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the processing meanss of electric energy measurement data, Fig. 6 be according to this
A kind of schematic diagram of the processing meanss of electric energy measurement data of application embodiment, in conjunction with shown in Fig. 6, the device includes:
Acquisition module 60, for obtaining pending data, wherein, pending data is measurement error data, measurement error
Data are obtained with conventional true value according to measured value.
Specifically, above-mentioned pending data can be using the calculated margin of error of the methods such as step-by-step counting, relative method
According to, and relative error is typically adopted, but no matter using the method for any calculation error.Its rationale be exactly measured value with about
Determine the absolute error of true value and the ratio of measured conventional true value.Need it is noted that this mathematical calculation that passed through draws
Error, its result length may be a lot.
Computing module 62, for pending data is input into preset algorithm, obtains the corresponding result of pending data, its
In, preset algorithm is used for carrying out revision of the convention process to pending data.
The corresponding result of above-mentioned pending data is digit less data for pending data, pending
The digit of the corresponding result of data can be arranged according to demand.
Specifically, the above-mentioned numerical value revision of the convention refers to that the digit of logarithm value is defined a kind of process that chooses.In practical application
In often run into the numerical value of long number, but be actually needed is the less digit for limiting, that is to say, that there is no need to retain
Unnecessary digit, answers logarithm value to carry out the revision of the convention.For example, the pending data in above-mentioned steps can be just a lot of number of digit
According to, a lot of in pending data digit, but in the case that the position of actual demand is less, pending data is carried out at the revision of the convention
Reason.
It should be noted that the process of the error information in prior art for electric energy measurement data is located still through artificial
The means of reason are processed to data, and when data being carried out with revision of the convention process using artificial processing method, efficiency is low, the people of consumption
Power is big, time length and accuracy is extremely difficult to 100%.
In a kind of optional embodiment, above-mentioned preset algorithm can pass through programming realization, as preset algorithm is according to repairing
About rule build, therefore using preset algorithm, revision of the convention process is carried out to electric energy measurement data, can not only reach 100% correct
Rate, additionally it is possible to reduce manpower consumption and time loss, high degree improve data-handling efficiency.
From the foregoing, it will be observed that the application said apparatus obtain pending data, pending data is input into preset algorithm, is obtained
The corresponding result of pending data.Such scheme carries out revision of the convention process by the more pending data of preset algorithm number of bits,
The digit less data of accuracy 100% has been obtained with low personnel attrition and time loss.
Optionally, according to the above embodiments of the present application, computing module includes:
Acquisition submodule, for obtaining default revision of the convention spacing;
First calculating sub module, for calculating the business of pending data and revision of the convention spacing, as the first result data;
Submodule is processed, for carrying out presetting process to the first result data, obtains the second result data;
Second calculating sub module, for calculating the product of the second result data and revision of the convention spacing, as pending data pair
The result that answers.
Optionally, according to the above embodiments of the present application, processing submodule includes:
First acquisition unit, for obtaining default reservation digit;
Second acquisition unit, retains bit value for obtaining according to the first result data;
Operating unit, carries out plus-minus behaviour for the numerical value according to reservation bit value and after reserved bit to retaining bit value
Make.
Optionally, according to the above embodiments of the present application, operating unit includes:
First gives up subelement, is any one numerical value in the first numerical value set for the numerical value of one after reserved bit
In the case of, give up the numerical value after reserved bit, and keep reservation bit value constant;
Second gives up subelement, is any one numerical value in second value set for the numerical value of one after reserved bit
In the case of, give up the numerical value after reserved bit, and add one by bit value is retained;
First retains subelement, in the case of being default value for the numerical value of one after reserved bit, if reserved bit
One still suffers from non-zero values afterwards afterwards, then in the case of giving up the numerical value after reserved bit, and add one by bit value is retained;
Second retains subelement, in the case of being default value for the numerical value of one after reserved bit, if retained
Position after one there are no non-zero values afterwards in the case of, then judge retain bit value parity, if retain bit value be
Odd number, then give up the numerical value after reserved bit, and add one by bit value is retained, if reservation bit value is even number, to give up reservation
Numerical value behind position, and keep reservation bit value constant.
Optionally, according to the above embodiments of the present application, second acquisition unit includes:
3rd retain subelement, for the first result data expand n by after integer part take denary logarithm,
Wherein, n be with ten as bottom, to retain numerical value of the digit as index;
First determination subelement, in the case of being zero in logarithm, determines integer part for retaining bit value;
Second determination subelement, in the case of being not zero in logarithm, using the first result data expand n by after number
Value determines remainder result for retaining bit value to m remainder, and wherein, m is the numerical value with ten as the truth of a matter, with logarithm as index.
Optionally, according to the above embodiments of the present application, in the case that the numerical value after reserved bit is more than default value, really
After recognizing reserved bit, the numerical value of one is any one numerical value in the first numerical value set, in the numerical value after reserved bit less than pre-
If in the case of numerical value, after confirming reserved bit, the numerical value of one is any one numerical value in second value set.
Optionally, according to the above embodiments of the present application, preset algorithm passes through Matlab Program Generating.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can pass through other
Mode is realized.Wherein, device embodiment described above is only the schematically such as division of the unit, Ke Yiwei
A kind of division of logic function, can have other dividing mode when actually realizing, such as multiple units or component can in conjunction with or
Person is desirably integrated into another system, or some features can be ignored, or does not execute.Another, shown or discussed is mutual
Between coupling direct-coupling or communication connection can be the INDIRECT COUPLING or communication link of unit or module by some interfaces
Connect, can be electrical or other forms.
The unit that illustrates as separating component can be or may not be physically separate, aobvious as unit
The part for showing can be or may not be physical location, you can be located at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or use using in the form of SFU software functional unit
When, can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part in other words prior art being contributed or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, use so that a computer including some instructions
Equipment (can be personal computer, server or the network equipment etc.) execute the whole of each embodiment methods described of the present invention or
Part steps.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (14)
1. a kind of processing method of electric energy measurement data, it is characterised in that include:
Pending data is obtained, wherein, the pending data is measurement error data;
The pending data is input into preset algorithm, the corresponding result of the pending data is obtained, wherein, described default
Algorithm is used for carrying out revision of the convention process to the pending data.
2. method according to claim 1, it is characterised in that the pending data is input into preset algorithm, is obtained
The corresponding result of the pending data, including:
Obtain default revision of the convention spacing;
The business of the pending data and the revision of the convention spacing is calculated, as the first result data;
First result data is carried out process is preset, obtains the second result data;
The product of second result data and the revision of the convention spacing is calculated, as the corresponding result of the pending data.
3. method according to claim 2, it is characterised in that first result data is carried out presetting process, is obtained
Second result data, including:
Obtain default reservation digit;
Obtained according to first result data and retain bit value;
Plus-minus operation is carried out to the reservation bit value according to bit value and the numerical value after the reserved bit of retaining.
4. method according to claim 3, it is characterised in that after the reservation bit value and the reserved bit
Numerical value carries out plus-minus operation to the reservation bit value, including:
In the case that the numerical value of one is any one numerical value in the first numerical value set after reserved bit, give up the reserved bit
Numerical value afterwards, and keep the reservation bit value constant;
In the case that the numerical value of one is any one numerical value in second value set after the reserved bit, give up the guarantor
The numerical value behind position is stayed, and the reservation bit value is added one;
After the reserved bit numerical value of one be default value in the case of, if after reserved bit one still suffer from non-zero afterwards
Numerical value, then in the case of giving up the numerical value after the reserved bit, and the reservation bit value is added one;
After the reserved bit numerical value of one be default value in the case of, if after reserved bit one do not exist afterwards non-
In the case of zero value, then judge the parity for retaining bit value, if the reservation bit value is odd number, to give up institute
The numerical value after reserved bit is stated, and the reservation bit value is added one, if the reservation bit value is even number, to give up the guarantor
The numerical value behind position is stayed, and keeps the reservation bit value constant.
5. the method according to claim 3 or 4, it is characterised in that obtained according to first result data and retain digit
Value, including:
To first result data expand n by after integer part take denary logarithm, wherein, n be with ten as bottom, with
The numerical value for retaining digit for index;
In the case that the logarithm is zero, determine the integer part for the reservation bit value;
In the case that the logarithm is not zero, using first result data expand n by after numerical value to m remainder, determine
Remainder result is the reservation bit value, and wherein, the m is the numerical value with ten as the truth of a matter, with the logarithm as index.
6. method according to claim 4, it is characterised in that the numerical value after the reserved bit is more than the present count
In the case of value, after confirming the reserved bit, the numerical value of one is any one numerical value in the first numerical value set, described
Numerical value after reserved bit is second value less than the numerical value in the case of the default value, confirming one after the reserved bit
Any one numerical value in set.
7. method according to claim 1, it is characterised in that the preset algorithm passes through Matlab Program Generating.
8. a kind of processing meanss of electric energy measurement data, it is characterised in that include:
Acquisition module, for obtaining pending data, wherein, the pending data is that measurement error data, described measurement is missed
Difference data is obtained with conventional true value according to measured value;
Computing module, for the pending data is input into preset algorithm, obtains the corresponding result of the pending data,
Wherein, the preset algorithm is used for carrying out revision of the convention process to the pending data.
9. device according to claim 8, it is characterised in that the computing module includes:
Acquisition submodule, for obtaining default revision of the convention spacing;
First calculating sub module, for calculating the business of the pending data and the revision of the convention spacing, as the first result data;
Submodule is processed, for carrying out presetting process to first result data, obtains the second result data;
Second calculating sub module, for calculating the product of second result data and the revision of the convention spacing, waits to locate as described
The corresponding result of reason data.
10. device according to claim 9, it is characterised in that the process submodule includes:
First acquisition unit, for obtaining default reservation digit;
Second acquisition unit, retains bit value for obtaining according to first result data;
Operating unit, for carrying out to the reservation bit value according to bit value and the numerical value after the reserved bit of retaining
Plus-minus operation.
11. devices according to claim 10, it is characterised in that the operating unit includes:
First gives up subelement, for the feelings that the numerical value of one after reserved bit is any one numerical value in the first numerical value set
Under condition, give up the numerical value after the reserved bit, and keep the reservation bit value constant;
Second gives up subelement, is any one numerical value in second value set for the numerical value of one after the reserved bit
In the case of, give up the numerical value after the reserved bit, and the reservation bit value is added one;
First retains subelement, in the case of being default value for the numerical value of one after the reserved bit, if reserved bit
One still suffers from non-zero values afterwards afterwards, then in the case of giving up the numerical value after the reserved bit, and by the reservation bit value
Plus one;
Second retains subelement, in the case of being default value for the numerical value of one after the reserved bit, if retained
Position after one there are no non-zero values afterwards in the case of, then judge described retain bit value parity, if the reservation
Bit value is odd number, then give up the numerical value after the reserved bit, and the reservation bit value is added one, if the reservation digit
It is worth for even number, then gives up the numerical value after the reserved bit, and keep the reservation bit value constant.
12. devices according to claim 10 or 11, it is characterised in that the second acquisition unit includes:
3rd retain subelement, for first result data expand n by after integer part take denary logarithm,
Wherein, n is with ten as bottom, retains numerical value of the digit as index with described;
First determination subelement, in the case of being zero in the logarithm, determines the integer part for the reservation digit
Value;
Second determination subelement, in the case of being not zero in the logarithm, expands n using first result data rear
Numerical value to m remainder, determine remainder result for the reservation bit value, wherein, the m be with ten as the truth of a matter, with the logarithm
Numerical value for index.
13. devices according to claim 11, it is characterised in that the numerical value after the reserved bit is default more than described
In the case of numerical value, after confirming the reserved bit, the numerical value of one is any one numerical value in the first numerical value set, in institute
It is second to count numerical value after reserved bit to be stated less than the numerical value in the case of the default value, confirming one after the reserved bit
Any one numerical value in value set.
14. devices according to claim 8, it is characterised in that the preset algorithm passes through Matlab Program Generating.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843054.3A CN106443163B (en) | 2016-09-22 | 2016-09-22 | The treating method and apparatus of electric energy measurement data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610843054.3A CN106443163B (en) | 2016-09-22 | 2016-09-22 | The treating method and apparatus of electric energy measurement data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106443163A true CN106443163A (en) | 2017-02-22 |
CN106443163B CN106443163B (en) | 2019-08-09 |
Family
ID=58166228
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610843054.3A Active CN106443163B (en) | 2016-09-22 | 2016-09-22 | The treating method and apparatus of electric energy measurement data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106443163B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112147566A (en) * | 2020-09-24 | 2020-12-29 | 国网山东省电力公司临沂供电公司 | Online repair tool and method for field inspection errors of electric energy metering device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03108674A (en) * | 1989-09-22 | 1991-05-08 | Hitachi Ltd | Digital power measurer |
WO1998003880A1 (en) * | 1993-03-26 | 1998-01-29 | Schlumberger Industries, Inc. | Electronic metering device including automatic service sensing |
CN201903640U (en) * | 2010-08-23 | 2011-07-20 | 太原市优特奥科电子科技有限公司 | Error value calibrating device and error value transmission system of digital energy meter |
CN102590783A (en) * | 2012-03-09 | 2012-07-18 | 山东电力研究院 | Method for detecting error of indication of electric energy of high voltage energy meter and assessing qualification |
CN102622202A (en) * | 2012-02-22 | 2012-08-01 | 浙江工业大学 | Intelligent selection and representation method for significant digits of significant figure operational result |
CN103926187A (en) * | 2014-03-20 | 2014-07-16 | 深圳市帝迈生物技术有限公司 | Parameter output method based on parameter truncation, system and blood cell analyzer |
CN105511595A (en) * | 2016-01-22 | 2016-04-20 | 中国石油化工股份有限公司 | Experimental data processing method and device |
-
2016
- 2016-09-22 CN CN201610843054.3A patent/CN106443163B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03108674A (en) * | 1989-09-22 | 1991-05-08 | Hitachi Ltd | Digital power measurer |
WO1998003880A1 (en) * | 1993-03-26 | 1998-01-29 | Schlumberger Industries, Inc. | Electronic metering device including automatic service sensing |
CN201903640U (en) * | 2010-08-23 | 2011-07-20 | 太原市优特奥科电子科技有限公司 | Error value calibrating device and error value transmission system of digital energy meter |
CN102622202A (en) * | 2012-02-22 | 2012-08-01 | 浙江工业大学 | Intelligent selection and representation method for significant digits of significant figure operational result |
CN102590783A (en) * | 2012-03-09 | 2012-07-18 | 山东电力研究院 | Method for detecting error of indication of electric energy of high voltage energy meter and assessing qualification |
CN103926187A (en) * | 2014-03-20 | 2014-07-16 | 深圳市帝迈生物技术有限公司 | Parameter output method based on parameter truncation, system and blood cell analyzer |
CN105511595A (en) * | 2016-01-22 | 2016-04-20 | 中国石油化工股份有限公司 | Experimental data processing method and device |
Non-Patent Citations (2)
Title |
---|
杨新宇: ""检测数据误差分析和修约"", 《中国特种设备安全》 * |
钟旭峰: ""小议计量数据修约的方法"", 《计量技术》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112147566A (en) * | 2020-09-24 | 2020-12-29 | 国网山东省电力公司临沂供电公司 | Online repair tool and method for field inspection errors of electric energy metering device |
Also Published As
Publication number | Publication date |
---|---|
CN106443163B (en) | 2019-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108446978A (en) | Handle the method and device of transaction data | |
CN105354277A (en) | Recommendation method and system based on recurrent neural network | |
CN109905269A (en) | The method and apparatus for determining network failure | |
CN102982416A (en) | Universal implementation model for performance assessment | |
CN106202240A (en) | Material coding data processing method and device | |
CN106681688A (en) | Set similarity calculation method and system based on minhash | |
CN104809161B (en) | A kind of method and system that sparse matrix is compressed and is inquired | |
CN103714086A (en) | Method and device used for generating non-relational data base module | |
CN105956921A (en) | Method and device for selecting bankcard number by user himself/herself | |
CN113592019A (en) | Fault detection method, device, equipment and medium based on multi-model fusion | |
Khan et al. | A new conical regularization for some optimization and optimal control problems: convergence analysis and finite element discretization | |
CN105468703A (en) | Reason tracing method | |
Connolly et al. | Probabilistic rounding error analysis of Householder QR factorization | |
CN106443163A (en) | Electric energy metering data processing method and electric energy metering data processing device | |
CN113904915A (en) | Intelligent power communication fault analysis method and system based on Internet of things | |
CN1750411B (en) | Method and system for detecting cyclic redundency code calculation | |
Williams | Strongly maximal intersection-complete neural codes on grids are convex | |
CN110634574A (en) | Heart rate dynamic time irreversibility analysis method based on equivalent arrangement | |
CN116304251A (en) | Label processing method, device, computer equipment and storage medium | |
CN115862653A (en) | Audio denoising method and device, computer equipment and storage medium | |
CN103957012A (en) | Method and device for compressing DFA matrix | |
CN112000673A (en) | Method and device for inquiring transaction elements by using quantum line | |
CN112099739A (en) | Classified batch printing method and system for paper invoices | |
CN111984636B (en) | Data modeling method, device, equipment and storage medium | |
CN109409427A (en) | A kind of key detecting 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |