CN106443163B - The treating method and apparatus of electric energy measurement data - Google Patents

The treating method and apparatus of electric energy measurement data Download PDF

Info

Publication number
CN106443163B
CN106443163B CN201610843054.3A CN201610843054A CN106443163B CN 106443163 B CN106443163 B CN 106443163B CN 201610843054 A CN201610843054 A CN 201610843054A CN 106443163 B CN106443163 B CN 106443163B
Authority
CN
China
Prior art keywords
numerical value
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.)
Active
Application number
CN201610843054.3A
Other languages
Chinese (zh)
Other versions
CN106443163A (en
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.)
State Grid Corp of China SGCC
State Grid Beijing Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Beijing Electric Power 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 State Grid Corp of China SGCC, State Grid Beijing Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN201610843054.3A priority Critical patent/CN106443163B/en
Publication of CN106443163A publication Critical patent/CN106443163A/en
Application granted granted Critical
Publication of CN106443163B publication Critical patent/CN106443163B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R22/00Arrangements 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 a kind for the treatment of method and apparatus of electric energy measurement data.Wherein, this method comprises: obtaining pending data, wherein pending data is measurement error data, and measurement error data are obtained according to measured value and conventional true value;Pending data is input to preset algorithm, obtains the corresponding result of pending data, wherein preset algorithm is used to carry out revision of the convention processing to pending data.The present invention, which solves, carries out artificial revision of the convention processing to the error information in electrical energy measurement in the prior art, leads to high labor cost and the low technical problem of the data precision.

Description

The treating method and apparatus of electric energy measurement data
Technical field
The present invention relates to data processing fields, in particular to a kind for the treatment of method and apparatus of electric energy measurement data.
Background technique
The data processing of measurement result, is an important link of metrology and measurement, and only reasonable data processing can just take Obtain reasonable result.Data processing should neither improve measurement accuracy, can not reduce measurement accuracy, and should effectively reflect Objective measurement accuracy, Error Theory are to measure the important foundation of data processing.
The numerical value revision of the convention refers to that the digit of logarithm is defined a kind of processing of selection.At work, it often encounters more The numerical value of digit, but it is actually required be restriction less digit, that is to say, that It is not necessary to retain extra digit, cope with 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), generally calculated using step-by-step counting, comparison method Error, and generally use relative error.The design and calculation method of each manufacturer is perhaps different, but its basic theory used is just It is the ratio between the absolute error of measured value and conventional true value and the conventional true value being measured.This mistake for having passed through mathematical computations and having obtained Difference, result length may be very much, but do not have 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 that handle verification result, for measurement data The revision of the convention is provided.Such as " JJG307-2006JI electromechanical AC energy meter " clearly proposes that measurement result must be counted According to the revision of the convention, and clear stipulaties: judging whether electric energy meter relative error meets related request, be subject to the result after the revision of the convention without exception.
But the personnel for newly working, remember and understand rule for rounding off, needs the time.Carrying out data processing When, it is also possible to mistake occurs.In case of mistake, verification result will affect, and this mistake is not easy to find.Even work is for many years Old employee, it is clear that data processing rule is generally also not easy to remember completely, when needs also can flipbook consult.Educational background compared with Low employee holds the suspicious attitude for the revision of the convention result of oneself, needs repeatedly to verify to confirm correctness.
Other than calculating mistake caused by artificial, the efficiency manually calculated is also very low.In electrical energy measurement field, Inevitably encounter a large amount of data processing work.Even for skilled employee, if according to being capable of handling 4 per minute A data revision of the convention calculates, and handles 10000 data, it is also desirable to continue working 2500 minutes, be exactly a hour more than 60.People Work cost and its high.
For artificial revision of the convention processing is carried out to the error information in electrical energy measurement in the prior art, cause high labor cost and The low problem of the data precision, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind for the treatment of method and apparatus of electric energy measurement data, at least to solve the prior art In artificial revision of the convention processing is carried out to the error information in electrical energy measurement, lead to high labor cost and the low technology of the data precision asked Topic.
According to an aspect of an embodiment of the present invention, a kind of processing method of electric energy measurement data is provided, comprising: obtain Pending data, wherein pending data is measurement error data, and measurement error data are obtained according to measured value and conventional true value It arrives;Pending data is input to preset algorithm, obtains the corresponding result of pending data, wherein preset algorithm is for treating It handles data and carries out revision of the convention processing.
According to another aspect of an embodiment of the present invention, a kind of processing unit of electric energy measurement data is additionally provided, comprising: obtain Modulus block, for obtaining pending data, wherein pending data is measurement error data, and measurement error data are according to measurement Value is obtained with conventional true value;It is corresponding to obtain pending data for pending data to be input to preset algorithm for computing module As a result, wherein preset algorithm is used to carry out revision of the convention processing to pending data.
It is worth noting that, in the prior art for the processing of the error information of electric energy measurement data still through artificial place The means of reason handle data, using artificial processing method to data carry out the revision of the convention processing when, low efficiency, consumption people Power is big, and the time is long and accuracy is extremely difficult to 100%.
In embodiments of the present invention, pending data is obtained, pending data is input to preset algorithm, is obtained to be processed The corresponding result of data.Above scheme carries out revision of the convention processing by the more pending data of preset algorithm number of bits, with low people Member's consumption and time loss have obtained the digit less data of accuracy 100%, to solve in the prior art to electric energy Error information in metering carries out artificial revision of the convention processing, leads to high labor cost and the data precision low technical problem.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations 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 an embodiment of the present invention;
Fig. 2 a is a kind of result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the application;
Fig. 2 b is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to second of the application;
Fig. 2 c is to pass through algorithm to the result schematic diagram of pending data progress revision of the convention processing according to the third of the application;
Fig. 2 d is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 4th kind of the application;
Fig. 2 e is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 5th kind of the application;
Fig. 2 f is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 6th kind of the application;
Fig. 3 a be according to the embodiment of the present application it is a kind of optional while handle 6 data schematic diagram;
Fig. 3 b be according to the embodiment of the present application it is a kind of optional while handle 6 data result schematic diagram;
Fig. 4 is to carry out revision of the convention processing to pending data according to a kind of method through this embodiment of the embodiment of the present application The schematic diagram of used time;
Fig. 5 is a kind of signal that revision of the convention processing is carried out by the multiple data of Matlab program according to the embodiment of the present application Figure;And
Fig. 6 is the schematic diagram according to a kind of processing unit of electric energy measurement data of the embodiment of the present application.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the processing method of electric energy measurement data is provided, needs to illustrate It is that step shown in the flowchart of the accompanying drawings can execute in a computer system such as a set of computer executable instructions, Also, although logical order is shown in flow charts, and it in some cases, can be to be different from sequence execution herein Shown or described step.
Fig. 1 is the flow chart of the processing method of electric energy measurement data according to an embodiment of the present invention, as shown in Figure 1, the party Method includes the following steps:
Step S102 obtains pending data, wherein pending data is measurement error data, measurement error data root It is obtained according to measured value and conventional true value.
Specifically, above-mentioned pending data can be the margin of error being calculated using the methods of step-by-step counting, comparison method According to, and relative error is generally used, but no matter using any method for calculating error.Its basic theory be exactly measured value with about Determine the ratio between the absolute error of true value and the conventional true value being measured.It is needing it is noted that this mathematical computations that passed through obtain Error, result length may be very much.
Pending data is input to preset algorithm by step S104, obtains the corresponding result of pending data, wherein pre- Imputation method is used to carry out revision of the convention processing to pending data.
The corresponding result of above-mentioned pending data is for pending data, and digit less data is to be processed 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 is defined a kind of processing of selection.In practical application In often encounter the numerical value of long number, but it is actually required be restriction less digit, that is to say, that It is not necessary to retain Extra digit answers logarithm to carry out the revision of the convention.For example, the pending data in above-mentioned steps can be many numbers of digit According in the case that many in pending data digit but actual demand position is less, at the pending data progress revision of the convention Reason.
It is worth noting that, in the prior art for the processing of the error information of electric energy measurement data still through artificial place The means of reason handle data, using artificial processing method to data carry out the revision of the convention processing when, low efficiency, consumption people Power is big, and the time is long and accuracy is extremely difficult to 100%.
In an alternative embodiment, above-mentioned preset algorithm can be realized by programming, since preset algorithm is according to repairing About rule building, therefore using preset algorithm to electric energy measurement data carry out revision of the convention processing, can not only reach 100% it is correct Rate, additionally it is possible to reduce manpower consumption and time loss, high degree improves data-handling efficiency.
From the foregoing, it will be observed that the application above-mentioned steps obtain pending data, pending data is input to preset algorithm, is obtained The corresponding result of pending data.Above scheme carries out revision of the convention processing 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 to preset algorithm, obtains pending data Corresponding result, comprising:
Step S1041 obtains preset revision of the convention spacing.
Step S1043 calculates the quotient of pending data and revision of the convention spacing, as the first result data.
Step S1045 carries out default processing 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 preset revision of the convention spacing, pending data and revision of the convention spacing are calculated Quotient carries out default processing to the first result data, obtains the second result data, calculate the second result as the first result data The product of data and revision of the convention spacing, as the corresponding result of pending data.Above scheme is realized to be calculated by preset algorithm The purpose of revision of the convention processing is carried out to pending data.
Optionally, according to the above embodiments of the present application, default processing is carried out to the first result data, obtains the second number of results According to, comprising:
Step S1049 obtains preset reservation digit.
Step S1051 is obtained according to the first result data and is retained bit value.
Step S1053 carries out plus-minus operation to bit value is retained according to the numerical value after reservation bit value and reserved bit.
From the foregoing, it will be observed that the application above-mentioned steps obtain preset reservation digit, reserved bit is obtained according to the first result data Numerical value carries out plus-minus operation to bit value is retained according to the numerical value after reservation bit value and reserved bit.Above scheme is in determination After retaining digit, according to the demand for retaining digit, corresponding operation is carried out to the numerical value of reserved bit, thus to pending data Carry out revision of the convention processing.
Optionally, according to the above embodiments of the present application, according to the numerical value after reservation bit value and reserved bit to reserved bit Numerical value carries out plus-minus operation, comprising:
Step S1055, in the case where the numerical value of the latter position of reserved bit is any one numerical value in the first numerical value set, Numerical value after giving up 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 processing to pending data by algorithm according to the application, knot It closes shown in Fig. 2 a, in an alternative embodiment, measurement error is 0.52499, and to retain digit for 2, revision of the convention spacing is 5 works For example, divided by revision of the convention spacing 5, obtaining the first result data is 0.104998, reserved bit 0, and the next bit of reserved bit is 4, Therefore latter several of reserved bit give up, and reserved bit is also constant, obtains the second result data 0.10, multiplied by revision of the convention spacing 5, finally Obtain revision of the convention result 0.50.
Fig. 2 b is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to second of the application, In conjunction with shown in Fig. 2 b, in an alternative embodiment, measurement error is 0.5749, and still to retain digit for 2, revision of the convention spacing is 5 as an example, obtaining the first result data is 0.11498, reserved bit 1, and the next bit of reserved bit divided by revision of the convention spacing 5 It is 4, therefore retains invariant position, the numerical value after reserved bit is given up, the second result data 0.11 is obtained, multiplied by revision of the convention spacing 5, Finally obtain revision of the convention result 0.55.
Step S1057, in the case where the numerical value of the latter position of reserved bit is any one numerical value in second value set, Numerical value after giving up reserved bit, and add one for bit value is retained.
Specifically, above-mentioned the second data set can be { 6,7,8,9 }.
Fig. 2 c be according to the application the third by algorithm to pending data carry out revision of the convention processing result schematic diagram, In conjunction with shown in Fig. 2 c, in an alternative embodiment, measurement error is 0.4299, and to retain digit for 2, revision of the convention spacing is 5 As an example, obtaining the first result data is 0.08598, reserved bit 8, and the next bit of reserved bit is divided by revision of the convention spacing 5 5, and latter several there are still non-zero numerical value, therefore reserved bit adds 1, and the number after reserved bit is given up, and obtains the second result data and is 0.09, multiplied by revision of the convention spacing 5, finally obtain revision of the convention result 0.45.
Step S1059, in the case where the numerical value of the latter position of reserved bit is default value, if after the latter position of reserved bit There are still non-zero values, then in the case where the numerical value after giving up reserved bit, and add one for bit value is retained.
Fig. 2 d is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 4th kind of the application, In conjunction with shown in Fig. 2 d, in an alternative embodiment, measurement error is 0.52501, and to retain digit for 2, revision of the convention spacing is 5 As an example, obtaining the first result data is 0.105002, reserved bit 0, and the next bit of reserved bit divided by revision of the convention spacing 5 Be 5, and latter several there are still non-zero numerical value, therefore reserved bit adds 1, and the number after reserved bit is given up, and the second result data is obtained It is 0.11, multiplied by revision of the convention spacing 5, finally obtains revision of the convention result 0.55.
Step S1061, the numerical value of the latter position of reserved bit be default value in the case where, if the latter position of reserved bit it Afterwards there is no in the case where non-zero values, then the parity of reservation bit value is judged, if reservation bit value is odd number, give up Numerical value after reserved bit, and by retain bit value add one, if reservations bit value be even number, the numerical value after giving up reserved bit, And keep reservation bit value constant.
Fig. 2 e is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 5th kind of the application, In conjunction with shown in Fig. 2 e, in an alternative embodiment, the measurement error as pending data is 0.525, to retain digit It is 2, revision of the convention spacing is 5 as an example, divided by revision of the convention spacing 5, the first result data 0.105, reserved bit 0 are obtained, and retain It is even number that the next bit of position, which is 5,0, therefore retains invariant position, and the next bit of reserved bit is given up, and obtains the second result data 0.10, Multiplied by revision of the convention spacing 5, finally obtaining revision of the convention result should be 0.50.
Fig. 2 f is the result schematic diagram for carrying out revision of the convention processing to pending data by algorithm according to the 6th kind of the application, 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 is 5 as an example, divided by revision of the convention spacing 5, obtains the first result data 0.075, reserved bit 7, and The next bit of reserved bit is 5, later again without other non-zero numerical value.Reservation bit value 5 is odd number, therefore reserved bit adds 1, reserved bit Next bit give up, obtain the second result data 0.08, multiplied by revision of the convention spacing 5, finally obtain revision of the convention result 0.40.
Herein it should be noted that since Matlab program default remains into decimal point the 4th, and this operation only needs to protect 2 are left to after decimal point, therefore is removed when recording data the 0 of the decimal point of Matlab numerical value the 3rd, 4, 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, it may be assumed that relative error will remain into the 2nd after decimal point Position, and be 5 integral multiple, therefore revision of the convention spacing is 5.
Herein it should also be noted that, the data by situation in above 6 are analyzed, it has been found that pass through this Matlab algorithm The result that program obtains is completely correct, and covers all special circumstances, therefore the accuracy of the algorithm is unquestionable.It removes Except this superiority, multiple numerical value can also be calculated simultaneously using algorithm is changed.Fig. 3 a is can according to one kind of the embodiment of the present application While choosing handle 6 data schematic diagram, Fig. 3 b be according to the embodiment of the present application it is a kind of optional while handle 6 data Result schematic diagram, this 6 numerical value are stored in one 3 × 2 matrix A by the example in conjunction with shown in Fig. 3 a and 3b.Using certainly The xiuyue function calculating formula of definition will need the place of error originated from input numerical value A_err to become matrix A originally, that is, Xiuyue (0.525,2,5) can obtain a new matrix, in conjunction with Fig. 3 b it is found that each numerical value of new matrix is exactly original matrix The revision of the convention value of each numerical value, and corresponding position is also constant.
Fig. 4 is to carry out revision of the convention processing to pending data according to a kind of method through this embodiment of the embodiment of the present application The schematic diagram of used time.As shown in connection with fig. 4, revision of the convention processing is carried out to the numerical value in above-mentioned six embodiments, it is only time-consuming It is 6.22 × 10-4s。
From the foregoing, it will be observed that the application above-mentioned steps are carried out by the next bit of reserved bit and reserved bit to pending data Judgement, it is more expensive according to repairing, obtain the less revision of the convention data of digit.
Optionally, it according to the above embodiments of the present application, is obtained according to the first result data and retains bit value, comprising:
Step S1063 expands integer part of the n by after to the first result data and takes denary logarithm, wherein n is It is bottom with ten, to retain numerical value of the digit as index.
Step S1065 determines integer part in the case where logarithm is zero to retain bit value.
Step S1067 expands numerical value of the n by after using the first result data and takes to m in the case where logarithm is not zero It is remaining, remainder result is determined to retain bit value, wherein it is the truth of a matter that m, which is with ten, using logarithm as the numerical value of index.
In an alternative embodiment, by taking pending data is 0.075 as an example, retain the 2nd that bit value is decimal point Digit 7 then can expand 100 (n=10 herein to 0.0752=100) again, 7.5 are obtained, integer part 0 is then retained Position is the 7 of integer part.
In an alternative embodiment, by taking pending data is 0.675 as an example, retain that bit value is decimal 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 (it is 1 that 67.5 pair 10, which takes log result, herein m=10) remainder, obtaining reserved bit is 7..
Optionally, according to the above embodiments of the present application, in the case where the numerical value after reserved bit is greater than default value, really The numerical value of the latter position of reserved bit is recognized for any one numerical value in the first numerical value set, is less than in the numerical value after reserved bit pre- If in the case where numerical value, the numerical value of the confirmation latter position of reserved bit is any one numerical value in second value set.
For example, in an alternative embodiment, default value can be 5, then the first data acquisition system can be 0,1,2, 3,4 }, the second data set can be { 6,7,8,9 }.
Optionally, according to the above embodiments of the present application, preset algorithm passes through Matlab Program Generating.
In an alternative embodiment, the calculating function an of revision of the convention can be established by Matlab programming software, It is named as xiuyue (A_err, res, sd), xiuyue is function name, and the function is there are 3 parameters, respectively A_err, res,sd.A_err represents the reading for needing to be subject to measuring device by the measurement error of the revision of the convention, that is, measured value;Res generation Table needs the scale retained, and relative error here will remain into the 2nd after decimal point, therefore Res=2;Sd generation Table revision of the convention spacing, therefore sd=5.It is after its revision of the convention as a result, in Matlab software to obtain if measurement error is 0.525 Middle input xiuyue (0.525,2,5) can obtain its corresponding revision of the convention result.Above procedure can be following procedure.
Function y=xiuyue (A_err, res, sd)
This is the format of Matlab software design custom function to %, and using function order, wherein xiuyue is letter It is several.This function needs 3 parameters, respectively A_err, res, sd.
% the method is used to calculate the revision of the convention.Single number can not only be calculated, and an array, such as needle can also be calculated Revision of the convention calculating is carried out to each numerical value in the array of one 200 (row) × 200 (column), the results are shown in correspondences after having been calculated Position.
%A_err refers to m (row) × n (column) array of measurement error (error) data composition, that is, by the number of the revision of the convention It is worth the array of composition;
%res refers to the digit (reserve units) that needs retain, if it is desired to error need to be saved in decimal point 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);% constructs a m row, n column and the array for being all 0, 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% calculates all numerical value of m row, n columns group, needs using for loop command
For j=1:n
The rule for rounding off of the complete part 1 of % the following contents writes program, according to this program, can accurately calculate The numerical value revision of the convention.
It is 0.375 as an example, the first step with pending data herein it should be noted that in above procedure, 0.375, divided by revision of the convention spacing 5, obtains 0.075.Since decimal point second 7 is odd number, the 3rd 5 is given up, and 7 into one.By It is taken multiplied by 10 scale power in the 2nd digit 7 for needing to get decimal point, i.e. reservation bit value, therefore by it Position, to obtain retaining bit value.
For another example needing to get the 2nd digit 7 of decimal point for 0.675, that is, retain bit value, then it 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 sentence e=rem (c, 10^g), and e is exactly 67 to take the remainder divided by 10, obtains e=7, the i.e. numerical value of reserved bit.
If using method in the prior art by manually carrying out revision of the convention processing to data, by taking skilled employee as an example, If calculated according to 4 data revisions of the convention are capable of handling per minute, 10000 data are handled, it is also desirable to continue working 2500 points Clock is exactly a hour more than 60.
Fig. 5 is a kind of signal that revision of the convention processing is carried out by the multiple data of Matlab program according to the embodiment of the present application Figure, as shown in connection with fig. 5, rand order be for generating the random number between 0-1, using the random number between the 0-1 of generation as Measurement error.Rand (100) generates 100 × 100 matrixes, that is, the matrix being made of 10000 numerical value for indicating, All elements in the matrix are all the random numbers between 0-1, it is stored in matrix A 0.Next using xiuyue (A0, 2,5), that is, carrying out revision of the convention processing to each element in matrix A 0, wherein revision of the convention spacing is 5, and retaining digit is 2, finally Calculating time showing be 0.390268s, namely the work by manually needing to spend a hour more than 60 to complete, pass through the application The scheme that embodiment provides, it is only necessary to can be achieved with less than 0.4s.
Embodiment 1
According to embodiments of the present invention, a kind of embodiment of the processing unit of electric energy measurement data is provided, Fig. 6 is according to this Apply for a kind of schematic diagram of the processing unit of electric energy measurement data of embodiment, as shown in connection with fig. 6, which includes:
Module 60 is obtained, for obtaining pending data, wherein pending data is measurement error data, measurement error Data are obtained according to measured value and conventional true value.
Specifically, above-mentioned pending data can be the margin of error being calculated using the methods of step-by-step counting, comparison method According to, and relative error is generally used, but no matter using any method for calculating error.Its basic theory be exactly measured value with about Determine the ratio between the absolute error of true value and the conventional true value being measured.It is needing it is noted that this mathematical computations that passed through obtain Error, result length may be very much.
Computing module 62, for pending data to be input to preset algorithm, obtain pending data it is corresponding as a result, its In, preset algorithm is used to carry out revision of the convention processing to pending data.
The corresponding result of above-mentioned pending data is for pending data, and digit less data is to be processed 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 is defined a kind of processing of selection.In practical application In often encounter the numerical value of long number, but it is actually required be restriction less digit, that is to say, that It is not necessary to retain Extra digit answers logarithm to carry out the revision of the convention.For example, the pending data in above-mentioned steps can be many numbers of digit According in the case that many in pending data digit but actual demand position is less, at the pending data progress revision of the convention Reason.
It is worth noting that, in the prior art for the processing of the error information of electric energy measurement data still through artificial place The means of reason handle data, using artificial processing method to data carry out the revision of the convention processing when, low efficiency, consumption people Power is big, and the time is long and accuracy is extremely difficult to 100%.
In an alternative embodiment, above-mentioned preset algorithm can be realized by programming, since preset algorithm is according to repairing About rule building, therefore using preset algorithm to electric energy measurement data carry out revision of the convention processing, can not only reach 100% it is correct Rate, additionally it is possible to reduce manpower consumption and time loss, high degree improves data-handling efficiency.
From the foregoing, it will be observed that the application above-mentioned apparatus obtains pending data, pending data is input to preset algorithm, is obtained The corresponding result of pending data.Above scheme carries out revision of the convention processing 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 preset revision of the convention spacing;
First computational submodule, for calculating the quotient of pending data Yu revision of the convention spacing, as the first result data;
Submodule is handled, for carrying out default processing to the first result data, obtains the second result data;
Second computational submodule, for calculating the product of the second result data Yu revision of the convention spacing, as pending data pair The result answered.
Optionally, according to the above embodiments of the present application, handling submodule includes:
First acquisition unit, for obtaining preset reservation digit;
Second acquisition unit retains bit value for obtaining according to the first result data;
Operating unit, for carrying out plus-minus behaviour to bit value is retained according to the numerical value after reservation bit value and reserved bit 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 in the latter position of reserved bit In the case where, the numerical value after giving up 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 in the latter position of reserved bit In the case where, the numerical value after giving up reserved bit, and add one for bit value is retained;
First retain subelement, for the numerical value of the latter position of reserved bit be default value in the case where, if reserved bit There are still non-zero values after latter position, then in the case where the numerical value after giving up reserved bit, and add one for bit value is retained;
Second retain subelement, for the numerical value of the latter position of reserved bit be default value in the case where, if retain In the case where non-zero values are not present after the latter position in position, then the parity for retaining bit value is judged, be if retaining bit value Odd number, then the numerical value after giving up reserved bit, and add one for bit value is retained, if reservation bit value is even number, 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:
Third retains subelement, takes denary logarithm for expanding integer part of the n by after to the first result data, Wherein, it is bottom that n, which is with ten, to retain numerical value of the digit as index;
First determines subelement, retains bit value in the case where logarithm is zero, determining integer part;
Second determines subelement, for expanding number of the n by after using the first result data in the case where logarithm is not zero Value determines remainder result to m remainder to retain bit value, wherein it is the truth of a matter that m, which is with ten, using logarithm as the numerical value of index.
Optionally, according to the above embodiments of the present application, in the case where the numerical value after reserved bit is greater than default value, really The numerical value of the latter position of reserved bit is recognized for any one numerical value in the first numerical value set, is less than in the numerical value after reserved bit pre- If in the case where numerical value, the numerical value of the confirmation latter position of reserved bit 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 serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (8)

1. a kind of processing method of electric energy measurement data characterized by comprising
Obtain pending data, wherein the pending data is measurement error data;
The pending data is input to preset algorithm, obtains the corresponding result of the pending data, wherein is described default Algorithm is used to carry out revision of the convention processing to the pending data;
Wherein, the pending data is input to preset algorithm, obtains the corresponding result of the pending data, comprising:
Obtain preset revision of the convention spacing;
The quotient for calculating the pending data Yu the revision of the convention spacing, as the first result data;
Default processing is carried out to first result data, obtains the second result data;
The product for calculating second result data Yu the revision of the convention spacing, as the corresponding result of the pending data;
Wherein, default processing is carried out to first result data, obtains the second result data, comprising:
Obtain preset reservation digit;
It is obtained according to first result data and retains bit value;
Plus-minus operation is carried out to the reservation bit value according to the numerical value after the reservation bit value and the reserved bit;
The preset algorithm is realized by programming;
It is obtained according to first result data and retains bit value, comprising:
Integer part after expanding n times to first result data takes denary logarithm, wherein and it is bottom that n, which is with ten, with It is described to retain the numerical value that digit is index;
In the case where the logarithm is zero, determine that the integer part is the reservation bit value;
In the case where the logarithm is not zero, the numerical value after expanding n times using first result data determines m remainder Remainder result is the reservation bit value, wherein it is the truth of a matter that the m, which is with ten, using the logarithm as the numerical value of index.
2. the method according to claim 1, wherein after according to the reservation bit value and the reserved bit Numerical value carries out plus-minus operation to the reservation bit value, comprising:
In the case where the numerical value of the latter position of reserved bit is any one numerical value in the first numerical value set, give up the reserved bit Numerical value afterwards, and keep the reservation bit value constant;
In the case where the numerical value of the latter position of the reserved bit is any one numerical value in second value set, give up the guarantor Numerical value after staying position, and the reservation bit value is added one;
In the case where the numerical value of the latter position of the reserved bit is default value, if there are still non-zeros after the latter position of reserved bit The reservation bit value in the case where the numerical value after then giving up the reserved bit, and is added one by numerical value;
In the case where the numerical value of the latter position of the reserved bit is default value, if non-zero is not present after the latter position of reserved bit In the case where numerical value, then the parity for retaining bit value is judged, if the reservation bit value is odd number, give up described Numerical value after reserved bit, and the reservation bit value is added one, if the reservation bit value is even number, give up the reservation Numerical value behind position, and keep the reservation bit value constant.
3. according to the method described in claim 2, it is characterized in that, the numerical value after the reserved bit is greater than the present count In the case where value, confirm that the numerical value of the latter position of the reserved bit is any one numerical value in the first numerical value set, in the guarantor In the case where staying the numerical value after position to be less than the default value, confirm that the numerical value of the latter position of the reserved bit is second value collection Any one numerical value in conjunction.
4. the method according to claim 1, wherein the preset algorithm passes through Matlab Program Generating.
5. a kind of processing unit of electric energy measurement data characterized by comprising
Module is obtained, for obtaining pending data, wherein the pending data is measurement error data, and the measurement misses Difference data is obtained according to measured value and conventional true value;
Computing module, for the pending data to be input to preset algorithm, obtain the pending data it is corresponding as a result, Wherein, the preset algorithm is used to carry out revision of the convention processing to the pending data;
The computing module includes:
Acquisition submodule, for obtaining preset revision of the convention spacing;
First computational submodule, for calculating the quotient of the pending data Yu the revision of the convention spacing, as the first result data;
Submodule is handled, for carrying out default processing to first result data, obtains the second result data;
Second computational submodule, for calculating the product of second result data Yu the revision of the convention spacing, as described wait locate Manage the corresponding result of data;
The processing submodule includes:
First acquisition unit, for obtaining preset reservation digit;
Second acquisition unit retains bit value for obtaining according to first result data;
Operating unit, for being carried out according to the numerical value after the reservation bit value and the reserved bit to the reservation bit value Plus-minus operation;
Wherein, the preset algorithm is realized by programming;
The second acquisition unit includes:
Third retains subelement, takes denary logarithm for the integer part after expanding n times to first result data, Wherein, it is bottom that n, which is with ten, using the reservation digit as the numerical value of index;
First determines subelement, in the case where the logarithm is zero, determining that the integer part is the reservation digit Value;
Second determines subelement, in the case where the logarithm is not zero, after expanding n times using first result data Numerical value to m remainder, determine that remainder result is the reservation bit value, wherein it is the truth of a matter that the m, which is with ten, with the logarithm For the numerical value of index.
6. device according to claim 5, which is characterized in that the operating unit includes:
First gives up subelement, is the feelings of any one numerical value in the first numerical value set for the numerical value in the latter position of reserved bit Under condition, numerical value after giving up 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 in the latter position of the reserved bit In the case where, the numerical value after giving up the reserved bit, and the reservation bit value is added one;
First retain subelement, for the numerical value of the latter position of the reserved bit be default value in the case where, if reserved bit There are still non-zero values after latter position, then in the case where the numerical value after giving up the reserved bit, and by the reservation bit value Add one;
Second retain subelement, for the numerical value of the latter position of the reserved bit be default value in the case where, if reserved bit In the case where non-zero values are not present after latter position, then the parity for retaining bit value is judged, if the reserved bit Numerical value is odd number, then the numerical value after giving up the reserved bit, and the reservation bit value is added one, if the reservation bit value For even number, then numerical value after giving up the reserved bit, and keep the reservation bit value constant.
7. device according to claim 6, which is characterized in that the numerical value after the reserved bit is greater than the present count In the case where value, confirm that the numerical value of the latter position of the reserved bit is any one numerical value in the first numerical value set, in the guarantor In the case where staying the numerical value after position to be less than the default value, confirm that the numerical value of the latter position of the reserved bit is second value collection Any one numerical value in conjunction.
8. device according to claim 5, which is characterized in that the preset algorithm passes through Matlab Program Generating.
CN201610843054.3A 2016-09-22 2016-09-22 The treating method and apparatus of electric energy measurement data Active CN106443163B (en)

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 CN106443163A (en) 2017-02-22
CN106443163B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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 (4)

* Cited by examiner, † Cited by third party
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
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
CN105511595A (en) * 2016-01-22 2016-04-20 中国石油化工股份有限公司 Experimental data processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201903640U (en) * 2010-08-23 2011-07-20 太原市优特奥科电子科技有限公司 Error value calibrating device and error value transmission system of digital energy meter
CN102622202B (en) * 2012-02-22 2016-07-06 浙江工业大学 The number of significant digit intelligence of a kind of significant digit arithmetic result is chosen and method for expressing
CN103926187B (en) * 2014-03-20 2016-04-06 深圳市帝迈生物技术有限公司 The parameter output intent blocked based on parameter and system and blood cell analyzer

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
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
CN105511595A (en) * 2016-01-22 2016-04-20 中国石油化工股份有限公司 Experimental data processing method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"小议计量数据修约的方法";钟旭峰;《计量技术》;20030318(第3期);第56页 *
"检测数据误差分析和修约";杨新宇;《中国特种设备安全》;20060530;第22卷(第5期);第57-59页 *

Also Published As

Publication number Publication date
CN106443163A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
Blanco et al. Revisiting several problems and algorithms in continuous location with ℓ τ norms
CN108764705A (en) A kind of data quality accessment platform and method
CN106202240A (en) Materiel code data processing method and device
CN110474808A (en) A kind of method for predicting and device
CN108875013A (en) Handle the method and device of map datum
CN110750381B (en) Error correction method and device based on NAND FLASH memory
CN106598822A (en) Abnormal data detection method and device applied to capacity estimation
CN108829998A (en) A kind of detection method of deflection of bridge span, detection device and terminal device
CN107341070A (en) A kind of random write method and system based on correcting and eleting codes
CN113327136A (en) Attribution analysis method and device, electronic equipment and storage medium
CN112102011A (en) User grade prediction method, device, terminal and medium based on artificial intelligence
CN106443163B (en) The treating method and apparatus of electric energy measurement data
CN104090932B (en) A kind of content recommendation method and device
CN110262961A (en) Test method, device, storage medium and the terminal device of Workflow Management System
CN110110406A (en) A kind of Predicting Slope Stability method for realizing LS-SVM model based on Excel computing platform
CN112181790A (en) Capacity statistical method and system of storage equipment and related components
CN107562695B (en) Load data processing method and device for distribution transformer
CN110334055B (en) Method for acquiring material calculation data
CN116168403A (en) Medical data classification model training method, classification method, device and related medium
CN108829750A (en) A kind of quality of data determines system and method
CN105447251B (en) A kind of verification method based on transaction types excitation
CN104899371B (en) Survey of Transmission Line method and device
CN112365039A (en) Method and system for monthly power consumption prediction based on longitudinal and transverse correlation
CN105897278B (en) Information processing method and storage equipment
CN111984636B (en) Data modeling method, device, equipment and storage medium

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