CN113300709A - Data processing algorithm - Google Patents

Data processing algorithm Download PDF

Info

Publication number
CN113300709A
CN113300709A CN202110317847.2A CN202110317847A CN113300709A CN 113300709 A CN113300709 A CN 113300709A CN 202110317847 A CN202110317847 A CN 202110317847A CN 113300709 A CN113300709 A CN 113300709A
Authority
CN
China
Prior art keywords
array
value
equal
median
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110317847.2A
Other languages
Chinese (zh)
Inventor
张家炎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202110317847.2A priority Critical patent/CN113300709A/en
Publication of CN113300709A publication Critical patent/CN113300709A/en
Priority to PCT/CN2022/080921 priority patent/WO2022199427A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/12Analogue/digital converters
    • H03M1/34Analogue value compared with reference values

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Analogue/Digital Conversion (AREA)
  • Measuring Or Testing Involving Enzymes Or Micro-Organisms (AREA)

Abstract

The invention discloses a data processing algorithm, wherein arrays Q, N analog-to-digital conversion values of each array and corresponding power k of a calculated base number X are set; output array G1、G2、G3、…GQThe N analog-to-digital conversion values of each array are sequentially marked as G1(AD1,1、AD1,2、…、AD1,(N‑1)、AD1,N)、G2(AD2,1、AD2,2、…、AD2,(N‑1)、AD 2,N)、…GQ(ADQ,1、ADQ,2、…、ADQ,(N‑1)、ADQ,N) (ii) a S3, measuring a median value; a measure of the minimum; the maxima, modes, harmonic means, geometric means, and multi-dimensional metrics of each array are calculated. The data processing algorithm can remarkably improve the analog-to-digital conversion power by measuring the median, the minimum, the maximum, the mode, the harmonic mean and the arithmetic mean of a plurality of groups of analog-to-digital conversion values and then carrying out multi-dimensional measurement operation on the measurement valuesCompared with the existing ADC chip, the analog-to-digital conversion precision of the ADC chip is greatly improved.

Description

Data processing algorithm
Technical Field
The invention relates to a data processing algorithm of an analog-digital conversion circuit and a chip, in particular to a data processing algorithm.
Background
The current analog-to-digital conversion mode of the ADC chip is that an analog voltage value V and an analog-to-digital conversion output value are in a linear relationship:
analog-to-digital conversion value = (Grade ÷ V)IC)× VADIf the decimal number is calculated, the integer can be obtained by 4-round-5-in method:
VAD: simulating an input voltage value V;
VIC: the reference voltage value, which is generally equal to the chip operating voltage, in most cases +5V, may also have a different value, but the chip is executing the programThe former must be determined in advance, i.e. a fixed value.
Grade: will VICEvenly divided into an equal number of parts, which may be 256, 4096, …, etc., but the chip must be determined in advance, i.e. a fixed value, before the program is executed.
At present, when ADC chip is used for actual analog-to-digital conversion, the same V is subjected toADA set of analog-to-digital converted values G (AD) obtained at different times1、AD2、…、ADn-1、ADn) Often inconsistent. The following is even often the case:
(1)VAD1 < VAD2but the two voltage values differ by a relatively small amount, and VAD1Analog-to-digital conversion value of> VAD2The analog-to-digital conversion value of (1);
(2)VADanalog-to-digital conversion value of voltage of = 0, 0>0 is a nonnegative integer value such as 1, 2, 3, 4, 5, etc.
Generally, it is common practice to use the array G average (from a mathematical point of view, it is also a linear process in practice) as the finally determined analog-to-digital conversion value, but the result of this method tends to reduce the accuracy of the chip analog-to-digital conversion.
Disclosure of Invention
The invention aims to provide a novel nonlinear measurement mode, compared with the linear relation of the traditional classical analog-to-digital conversion, the measurement accuracy is greatly improved, and the method is particularly helpful for detecting trace substances.
In order to achieve the above purpose, the following scheme is provided:
a data processing algorithm comprising the steps of:
s1, setting arrays Q, N analog-to-digital conversion values of each array and the corresponding power k of the calculation base number X;
s2 output array G1、G2、G3、…、GQEach array is N analog-to-digital conversion values, which are sequentially marked as G1(AD1,1、AD1,2、…、AD1,(N-1)、AD1,N)、G2(AD2,1、AD2,2、…、AD2,(N-1)、AD 2,N)、G3(AD3,1、AD3,2、…、AD3,(N-1)、AD3,N)、…、GQ(ADQ,1、ADQ,2、…、ADQ,(N-1)、ADQ,N);
S3, calculating G1To GQMedian measure values for each array;
s4, calculating G1To GQThe minimum value measurement value of each array;
s5, calculating G1To GQThe maximum value measurement value of each array;
s6, calculating G1To GQThe mode measurement value of each array;
s7, calculating G1To GQMeasuring the harmonic mean value of each array;
s8, calculating G1To GQMeasuring the geometric mean value of each array;
s9, calculating G1To GQMultidimensional measurements of each array.
Further, G in the step S31To GQThe operation process of the median measurement value of each array comprises the following steps:
A1. get G1To GQMedian X of each array1,i(i =1, 2, 3, ·, Q) are respectively denoted as X1,1、X1,2、 X1,3、…X1,Q
G1Median number X of1,1Calculating, will G1The output values of the analog-to-digital conversion are rearranged in order of magnitude: AD1 ≤ AD2 ≤…≤ ADN-1 ≤ADN,
If N is odd, then the median X1,1 = ADi,i=(N + 1)÷ 2,
If N is an even number, then the median X1,1=(ADi + ADi+1)÷ 2,i=N÷2,
G2To GQMedian number X of1,2To X1,NValue process and G1The consistency is achieved;
A2. calculation of G1To GQMedian measure for each array: pM(M) = X1,1 k+ X1,2 k + … + X1,Q k
Further, G in the step S41To GQThe operation process of the minimum value measurement value of each array comprises the following steps:
B1. get G1To GQMinimum value X of each array2,i (i =1, 2, 3, ·, Q), each denoted X2,1、X2,2、 X2,3、…X2,Q:
X2,i≤ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N);
B2. Calculation of G1To GQMinimum value measurement values of each array: pL(L) = X2,1 k+ X2,2 k + … + X2,Q k
Further, G in the step S51To GQThe operation process of the maximum value measurement value of each array comprises the following steps:
C1. get G1To GQMaximum value X of each array3,i(i =1, 2, 3, ·, Q), each denoted X3,1、X3,2、 X3,3、…X3,Q;
X3,i≥ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N),
C2. Calculation of G1To GQMaximum value measurement values of each array: pH(H) = X3,1 k+ X3,2 k + … + X3,Q k
Further, G in the step S61To GQThe operation process of the mode measurement value of each array comprises the following steps:
D1. get G1To GQMode X of each array4,i(i =1, 2, 3, ·, Q), each denoted X4,1、X4,2、 X4,3、…X4,Q
If there are r different values, in the same array Gj(j is not less than 1 and not more than Q), heavyThe number of repeated occurrences is the same as or the maximum, and then the mode X4,jEqual to the arithmetic mean of r different values,
if in the same array Gj(j is more than or equal to 1 and less than or equal to Q), each number only appears once, then X4,jEqual to the arithmetic mean of the array;
D2. calculation of G1To GQMeasurement of the mode of each array: pS(S) = X4,1 k+ X4,2 k + … + X4,Q k
Further, G in the step S71To GQThe operation process of the harmonic mean measuring value of each array comprises the following steps:
E1. get G1To GQHarmonic mean X for each array5,i(i =1, 2, 3, ·, Q), each denoted X5,1、X5,2、 X5,3、…X5,Q
If for GiAny one of ADi,jAre both greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N);
then X5,i= N ÷ (1 ÷ AD ÷ or greater than N ÷i,1+1÷ADi,2+…+1÷ADi,N)]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1. ltoreq. i.ltoreq. Q, j =1, 2, N), then X5,i= 1;
If ADi,jIs not equal to 0 (1 ≦ i ≦ Q, j =1, 2, 3 ·, N), then X5,i = 0;
E2. Calculation of G1To GQHarmonic mean measure for each array: pR(R) = X5,1 k+ X5,2 k + … + X5,Q k
Further, G in the step S81To GQThe operation process of the geometric mean measurement value of each array comprises the following steps:
F1. get G1To GQMaximum value X of each array6,i (i=1,2,3,···,Q), each occurrence is X6,1、X6,2、 X6,3、…X6,Q
If for GiAny one of ADi,jAre all greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N),
then X6,i= [ greater than or equal to (AD)i,1•ADi,2···ADi,N)1/N]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1. ltoreq. i.ltoreq. Q, j =1, 2, N), then X6,i= 1;
If for Gi,ADi,jIs ≡ 0 (1 ≦ i ≦ Q, j =1, 2, 3, N), then X6,i= 0;
F2. Calculation of G1To GQGeometric mean measurement value P of each arrayJ(J) = X6,1 k+ X6,2 k + … + X6,Q k
Further, G in the step S91To GQThe operation process of the multidimensional measurement value of each array comprises the following steps:
H1. select G1To GQThe following steps:
median X1,iArray Q of1(X1,1、X1,2、 X1,3、…X1,Q);
Minimum value X2,iArray Q of2(X2,1、X2,2、 X2,3、…X2,Q);
Maximum value X3,iArray Q of3(X3,1、X3,2、 X3,3、…X3,Q);
X of the mode4,iArray Q of4(X4,1、X4,2、 X4,3、…X4,Q);
X of harmonic mean5,iArray Q of5(X5,1、X5,2、 X5,3、…X5,Q);
Geometric flatAverage number X6,iArray Q of6(X6,1、X6,2、 X6,3、…X6,Q);
H2. Calculation of G1To GQMeasuring value of multidimensional measure:
PT(T) = PM(M)•PL(L)•PH(H)•PS(S)•PR(R)•PJ(J)
= (X1,1 k+ X1,2 k + … + X1,Q k)•(X2,1 k+ X2,2 k + … + X2,Q k)•(X3,1 k+ X3,2 k + … + X3,Q k)
•(X4,1 k+ X4,2 k + … + X4,Q k)•(X5,1 k+ X5,2 k + … + X5,Q k)•(X6,1 k+ X6,2 k + … + X6,Q k)。
the working principle and the advantages of the invention are as follows: the data processing algorithm measures the median, the minimum, the maximum, the mode, the harmonic mean and the arithmetic mean of a plurality of groups of analog-to-digital conversion values and then performs multidimensional measurement operation on the measures, so that the analog-to-digital conversion precision of an ADC chip of the analog-to-digital conversion circuit can be remarkably improved, and the operation precision is greatly improved compared with that of the conventional ADC chip.
Detailed Description
The following is further detailed by the specific embodiments:
the analog-digital conversion circuit is composed of two resistors R1、R0And ADC chip, R1And R0The two resistors are connected in series, the ADC chip is connected at the point of the series connection of the two resistors, the point of the series connection of the two resistors is marked as a point B, and the voltage V of the point B isADResistance R1The other end of (1) is denoted as point A, and the resistance R0And the other end of the same is grounded.
A data processing algorithm comprising the steps of:
s1, setting arrays Q, N analog-to-digital conversion values of each array and the corresponding power k of the calculation base number X;
s2 output array G1、G2、G3、…、GQEach array is N analog-to-digital conversion values, which are sequentially marked as G1(AD1,1、AD1,2、…、AD1,(N-1)、AD1,N)、G2(AD2,1、AD2,2、…、AD2,(N-1)、AD 2,N)、G3(AD3,1、AD3,2、…、AD3,(N-1)、AD3,N)、…、GQ(ADQ,1、ADQ,2、…、ADQ,(N-1)、ADQ,N);
S3, calculating G1To GQMedian measure values for each array;
s4, calculating G1To GQThe minimum value measurement value of each array;
s5, calculating G1To GQThe maximum value measurement value of each array;
s6, calculating G1To GQThe mode measurement value of each array;
s7, calculating G1To GQMeasuring the harmonic mean value of each array;
s8, calculating G1To GQMeasuring the geometric mean value of each array;
s9, calculating G1To GQMultidimensional measurements of each array.
G in the step S31To GQThe operation process of the median measurement value of each array comprises the following steps:
A1. get G1To GQMedian X of each array1,i(i =1, 2, 3, ·, Q) are respectively denoted as X1,1、X1,2、 X1,3、…X1,Q
G1Median number X of1,1Calculating, will G1The output values of the analog-to-digital conversion are rearranged in order of magnitude: AD1 ≤ AD2 ≤…≤ ADN-1 ≤ADN,
If N is odd, then the median X1,1 = ADi,i=(N + 1)÷ 2,
If N is an even number, then the median X1,1=(ADi + ADi+1)÷ 2,i=N÷2,
G2To GQMedian number X of1,2To X1,NValue process and G1The consistency is achieved;
A2. calculation of G1To GQMedian measure for each array: pM(M) = X1,1 k+ X1,2 k + … + X1,Q k
Figure RE-GDA0003064682740000051
Is formed by
Figure RE-GDA0003064682740000052
The sigma-domain is generated in such a way that,
Figure RE-GDA0003064682740000053
Figure RE-GDA0003064682740000054
is a measurable space, PM(M) is a median measure of the measurable space. According to the theory of mathematical metric theory, the specific structure of the measurement space and measurement is as follows:
(1)M={X1,i:X1,iis G1,i(AD1、AD2、…、ADN-1、ADN) Q and N are any non-negative integer }, the median being defined:
will be array G1、G2、G3…GQThe analog-to-digital conversion numbers of the arrays are rearranged according to the size sequence: AD1≤AD2≤…≤ADN-1≤ADNIf N is an odd number, then x is ADi,i=(N+1)÷2,
If N is an even number, x is (AD)i+ADi+1)÷2,i=N÷2,
If N is equal to 0, then M is equal to phi and is empty set,
for any two arrays GiAnd GjThe median of (i ≠ j) is XiAnd XjAll belong to M, if XiIs equal to XjStill considering the two median values as being different elements of the set M, namely Xi≠XjThat is to say: different elements (median) in M may correspond to the same non-negative integer;
(2)ΩM={X1,i: all median }, any set M being a subset of Ω, i.e. M is a subset of Ω
Figure RE-GDA0003064682740000055
(3) According to the theory of metrics, the median set is of the kind
Figure RE-GDA0003064682740000056
I.e. to any
Figure RE-GDA0003064682740000057
In that
Figure RE-GDA0003064682740000058
Produce only one minimum sigma domain, noted
Figure RE-GDA0003064682740000059
) Is a measurable space in which the measurement of the object,
in a measurable space (omega)Mσ (M)) is defined as:
PM(φ)=0,
PM(M)=X1,1 K+X1,2 K+X1,3 K+…+X1,Q Kwherein
Figure RE-GDA00030646827400000510
According to the theory of meteorology, PM(M) is a measurable space
Figure RE-GDA00030646827400000511
A measure of (d);
(4) according to the theory of measures PM(M) A non-linear measure of the median set of the groups of chip analog-to-digital conversion output values corresponding to the voltage V at mid BADA non-linear relationship. The traditional classical analog-to-digital conversion value and voltage VADIs a linear relationship. The measurement can accurately distinguish small voltage differences;
(5) q, N, k can be determined according to the actual conditions of chip program memory and data memory size, operation speed, required accuracy, required completion time, etc., such as Q-128, N-32, k-2.
And median measure PM(M) obtaining a minimum measurement value PL(L), maximum value measurement value PH(H) Measurement of the mode PS(S) harmonic mean value PR(R), geometric mean value of measurement PJ(J)。
G in the step S41To GQThe operation process of the minimum value measurement value of each array comprises the following steps:
B1. get G1To GQMinimum value X of each array2,i (i =1, 2, 3, ·, Q), each denoted X2,1、X2,2、 X2,3、…X2,Q:
X2,i≤ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N);
B2. Calculation of G1To GQMinimum value measurement values of each array: pL(L) = X2,1 k+ X2,2 k + … + X2,Q k
Set of infinitesimal values L = { X =2,i:X2,iIs an array G1,Q(AD1、AD2、…、ADN-1、ADN) Is a minimum value of (a), Q and N are any non-negative integer }
If N = 0, L = phi is an empty set,
ΩL = { X2,i: all minima, any set L is ΩLI.e. L ⊂ ΩL
Definition of minimum value: x is less than or equal to ADi,i = 1、2、…、N,
For any two arrays GiAnd GjThe minimum values of (i ≠ j) are XiAnd XjAll belong to L, if XiIs equal to XjThe two minima are still considered to be distinct elements in the set L, namely Xi≠XjThat is, different elements (minima) in L may correspond to the same non-negative integer.
Minimum value set class
Figure DEST_PATH_IMAGE010
= L: l is a set of minimum values }, i.e., for any L ∈
Figure 462063DEST_PATH_IMAGE010
G in the step S51To GQThe operation process of the maximum value measurement value of each array comprises the following steps:
C1. get G1To GQMaximum value X of each array3,1(i =1, 2, 3, ·, Q), each denoted X3,1、X3,2、 X3,3、…X3,Q;
X3,i≥ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N),
C2. Calculation of G1To GQMaximum value measurement values of each array: pH(H) = X3,1 k+ X3,2 k + … + X3,Q k
Maximum value set H = { X3,i:X3,iIs an array G1,Q (AD1、AD2、…、ADN-1、ADN) Is the maximum value of (a), Q and N are any non-negative integer }
Definition of maximum value: x is not less than ADi,i = 1、2、…、N,
If N = 0, H = Φ is an empty set.
ΩH = { X3,i: all maxima }, any set H is ΩHI.e. H ⊂ ΩH
For any two arrays GiAnd Gj(i ≠ j) has a maximum value XiAnd XjAll belong to H, if XiIs equal to XjThe two maxima are still considered to be distinct elements in the set H, namely Xi≠XjThat is to say: different elements (maxima) in H may correspond to the same non-negative integer.
Maximum set class:
Figure DEST_PATH_IMAGE012
= H: h is a set of maxima }, i.e., for any H ∈
Figure 960303DEST_PATH_IMAGE012
G in the step S61To GQThe operation process of the mode measurement value of each array comprises the following steps:
D1. get G1To GQMode X of each array4,i(i =1, 2, 3, ·, Q), each denoted X4,1、X4,2、 X4,3、…X4,Q
If there are r different values, in the same array Gj(j is more than or equal to 1 and less than or equal to Q), the repeated occurrence times are as many as the maximum repeated occurrence times, and the mode X is4,jEqual to the arithmetic mean of r different values,
if in the same array Gj(j is more than or equal to 1 and less than or equal to Q), each number only appears once, then X4,jEqual to the arithmetic mean of the array;
D2. calculation of G1To GQMeasurement of the mode of each array: pS(S) = X4,1 k+ X4,2 k + … + X4,Q k
Mode set: s = { X4,i:X4,iIs an array G1,Q (AD1、AD2、…、ADN-1、ADN) Q and N are any non-negative integer }
Definition of mode: x4,iIs a corresponding array G1,Q (AD1、AD2、…、ADN-1、ADN) The number of occurrences of the compound is the greatest;
if N = 0, S = Φ is an empty set.
ΩS = {X4,i: all modes }, any set S is a subset of Ω S, i.e., S ⊂ ΩS
For any two arrays GiAnd GjThe mode of (i ≠ j) is XiAnd XjAll belong to S, if XiIs equal to XjStill considering the two modes as being distinct elements in set S, namely Xi≠XjThat is to say: different elements (modes) in S may correspond to the same non-negative integer.
If there are r different values, in an array G1,QThe number of repeated occurrences is as large as, and is the largest. X is equal to the arithmetic mean of the r different values.
If in array G1,QIn, each number appears only once, then X4,iIs equal to the array G1,QThe arithmetic mean of (a) is calculated,
a collection of masses
Figure DEST_PATH_IMAGE014
= S: s is a set of modes }, i.e. for any set of S e
Figure 422508DEST_PATH_IMAGE014
G in the step S71To GQThe operation process of the harmonic mean measuring value of each array comprises the following steps:
E1. get G1To GQHarmonic mean X for each array5,i(i =1, 2, 3, ·, Q), each denoted X5,1、X5,2、 X5,3、…X5,Q
If for GiAny one of ADi,jAre both greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N);
then X5,i= N ÷ (1 ÷ AD ÷ or greater than N ÷i,1+1÷ADi,2+…+1÷ADi,N)]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1. ltoreq. i.ltoreq. Q, j =1, 2, N), then X5,i= 1;
If ADi,jIs not equal to 0 (1 ≦ i ≦ Q, j =1, 2, 3 ·, N), then X5,i = 0;
E2. Calculation of G1To GQHarmonic mean measure for each array: pR(R) = X5,1 k+ X5,2 k + … + X5,Q k
Harmonic mean set R = { X5,i:X5,iIs an array G1,Q (AD1、AD2、…、ADN-1、ADN) Is equal to the harmonic mean of (1), Q and N are any non-negative integer }
Definition of harmonic mean:
if any ADiAre both greater than 0, then X5,i= greater than or equal to N ÷ ((1/AD)1)+(1/AD2)+(1/AD3)+…+(1/ADN) Minimum integer of (c)
If there is at least one ADiEqual to 0 and one ADjGreater than 0 (i is greater than or equal to 1, j is less than or equal to n) then X5,i = 1,
If ADiIs not less than 0 (1. ltoreq. i. ltoreq.n) then X5,i = 0,
If N = 0, R = Φ is the empty set.
ΩR = {X5,i: all harmonic means }, any set R is ΩRI.e. R ⊂ ΩR
For any two arrays GiAnd GjThe harmonic mean of (i ≠ j) is XiAnd XjAll belong to R, if XiIs equal to XjThe two harmonic means are still considered to be different elements in the set R, namely Xi≠XjThat is to say: multiple different elements in R (harmonic mean)Mean) may correspond to the same non-negative integer.
Harmonic mean collection of numbers
Figure DEST_PATH_IMAGE016
= R: r is a set of harmonic means }, i.e. for any R ∈
Figure 160526DEST_PATH_IMAGE016
G in the step S81To GQThe operation process of the geometric mean measurement value of each array comprises the following steps:
F1. get G1To GQMaximum value X of each array6,1(i =1, 2, 3, ·, Q), each denoted X6,1、X6,2、 X6,3、…X6,Q
If for GiAny one of ADi,jAre all greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N),
then X6,i= [ greater than or equal to (AD)i,1•ADi,2···ADi,N)1/N]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1. ltoreq. i.ltoreq. Q, j =1, 2, N), then X6,i= 1;
If for Gi,ADi,jIs ≡ 0 (1 ≦ i ≦ Q, j =1, 2, 3, N), then X6,i= 0;
F2. Calculation of G1To GQGeometric mean measurement value P of each arrayJ(J) = X6,1 k+ X6,2 k + … + X6,Q k
Collection of geometric mean: j = { X6,i:X6,iIs an array G1,Q (AD1、AD2、…、ADN-1、ADN) A harmonic mean of), Q and N are any non-negative integers },
definition of harmonic mean:
if any ADi Are all greater than 0 and are all greater than 0,then X6,i= is greater than or equal to (X)6,1·X6,2·X6,3·…·X6,N1/NIs the smallest integer of (a) or (b),
if there is at least one ADiEqual to 0 and one ADjGreater than 0 (i is greater than or equal to 1, j is less than or equal to n) then X6,1 = 1,
If ADiIs not less than 0 (1. ltoreq. i. ltoreq.n) then X6,1= 0,
If N = 0, J = Φ is an empty set.
ΩJ = { X6,1: all geometric means }, any set J is ΩJI.e. J ⊂ ΩJ,
For any two arrays GiAnd GjThe geometric mean of (i ≠ j) is XiAnd XjAll belong to J, if XiIs equal to XjThe two geometric means are still considered to be different elements in the set J, namely Xi≠XjThat is to say: different elements (geometric means) in J may correspond to the same non-negative integer.
Class of geometric mean number set
Figure DEST_PATH_IMAGE018
= J: j is a set of geometric means }, i.e., for any J ∈
Figure 210389DEST_PATH_IMAGE018
G in the step S91To GQThe operation process of the multidimensional measurement value of each array comprises the following steps:
H1. select G1To GQThe following steps:
median X1,iArray Q of1(X1,1、X1,2、 X1,3、…X1,Q);
Minimum value X2,iArray Q of2(X2,1、X2,2、 X2,3、…X2,Q);
Maximum value X3,iArray Q of3(X3,1、X3,2、 X3,3、…X3,Q);
X of the mode4,iArray Q of4(X4,1、X4,2、 X4,3、…X4,Q);
X of harmonic mean5,iArray Q of5(X5,1、X5,2、 X5,3、…X5,Q);
X of geometric mean6,iArray Q of6(X6,1、X6,2、 X6,3、…X6,Q);
H2. Calculation of G1To GQMeasuring value of multidimensional measure:
PT(T) = PM(M)•PL(L)•PH(H)•PS(S)•PR(R)•PJ(J)
= (X1,1 k+ X1,2 k + … + X1,Q k)•(X2,1 k+ X2,2 k + … + X2,Q k)•(X3,1 k+ X3,2 k + … + X3,Q k)
•(X4,1 k+ X4,2 k + … + X4,Q k)•(X5,1 k+ X5,2 k + … + X5,Q k)•(X6,1 k+ X6,2 k + … + X6,Q k)。
according to the theory of mathematical metric theory, in each set class
Figure DEST_PATH_IMAGE020
Figure DEST_PATH_IMAGE022
Figure DEST_PATH_IMAGE024
Figure DEST_PATH_IMAGE026
Figure DEST_PATH_IMAGE028
Figure 592829DEST_PATH_IMAGE018
Figure DEST_PATH_IMAGE030
The above can generate the smallest sigma domain, which is sequentially marked as sigma: (
Figure 616148DEST_PATH_IMAGE020
)、σ(
Figure 952714DEST_PATH_IMAGE022
)、σ(
Figure 962258DEST_PATH_IMAGE024
)、σ(
Figure 464784DEST_PATH_IMAGE026
)、σ(
Figure 268792DEST_PATH_IMAGE028
)、σ(
Figure 732134DEST_PATH_IMAGE018
)、σ(
Figure 670003DEST_PATH_IMAGE030
) Thereby forming a measurable space (omega) from the medianM,σ(
Figure DEST_PATH_IMAGE032
) Minimum measurable space (omega)L,σ(
Figure 636822DEST_PATH_IMAGE010
) Maximum measurable space (omega)H,σ(
Figure 500480DEST_PATH_IMAGE012
) Etc. and mode measurable space (omega)S,σ(
Figure 185539DEST_PATH_IMAGE014
) Harmonic mean measurable space (Ω)R,σ(
Figure 802465DEST_PATH_IMAGE016
) Geometric mean measurable space (omega)J,σ(
Figure 889370DEST_PATH_IMAGE018
) A product measure space (Ω) can be constructedT,σ(
Figure DEST_PATH_IMAGE034
) M, L, H, S, R, J, T are each a measurable set of these measurable spaces. The concrete structure is as follows:
(1) product set T = M × L × H × S × R × J { (X)1, X2, X3, X4, X5, X6):X1∈M, X2∈L, X3∈H, X4∈S, X5∈R, X6∈J},
(2) Product set omegaTM×ΩL×ΩH×ΩS×ΩR×ΩJ
(3) Collections class
Figure 425393DEST_PATH_IMAGE034
=
Figure 597749DEST_PATH_IMAGE032
×
Figure 611841DEST_PATH_IMAGE010
×
Figure 818831DEST_PATH_IMAGE012
×
Figure 666702DEST_PATH_IMAGE014
×
Figure 326353DEST_PATH_IMAGE016
×
Figure 409716DEST_PATH_IMAGE018
={ M×L×H×S×R×J:M∈
Figure 205633DEST_PATH_IMAGE032
, L∈
Figure 224405DEST_PATH_IMAGE010
, H∈
Figure 731872DEST_PATH_IMAGE012
, S∈
Figure 494292DEST_PATH_IMAGE014
, R∈
Figure 410295DEST_PATH_IMAGE016
, J∈
Figure 334389DEST_PATH_IMAGE018
},
As mentioned above, it is also possible to arbitrarily select sets and clusters that are products of sets and clusters,
(4) according to the theory of the metric theory, only one minimum sigma domain is generated at T and is marked as sigma: (
Figure 93266DEST_PATH_IMAGE034
),(ΩT,σ(
Figure 393797DEST_PATH_IMAGE034
),PT) Is (omega)M,σ(
Figure 714707DEST_PATH_IMAGE032
),PM)、(ΩL,σ(
Figure 809702DEST_PATH_IMAGE010
),PL)、(ΩH,σ(
Figure 931242DEST_PATH_IMAGE012
),PH)、(ΩS,σ(
Figure 35464DEST_PATH_IMAGE014
),PS)、(ΩR,σ(
Figure 332584DEST_PATH_IMAGE016
),PR)、(ΩJ,σ(
Figure 956070DEST_PATH_IMAGE018
),PJ) The independent product measure space of (a), the measure of which is:
PT(T) = P(M×L×H×S×R×J)= PM(M)•PL(L)•PH(H)•PS(S)•PR(R)•PJ(J),
(5) according to the theory of measures PT(T) can be used as a non-linear measure of the analog-to-digital conversion value of the chip, namely, the voltage V at the point BADThe method is different from the traditional classical analog-to-digital linear conversion, so that the small change of the voltage can be accurately distinguished.
(6) The unified Q, N, k values are set for the various different measurement calculations described above, and different Q values can be determined based on chip program memory, data memory, computation speed, required accuracy, completion time, etcj、Nj、kj(j =1 ~ 6).
The data processing algorithm measures the median, the minimum, the maximum, the mode, the harmonic mean and the arithmetic mean of a plurality of groups of analog-to-digital conversion values and then performs multidimensional measurement operation on the measures, so that the analog-to-digital conversion precision of an ADC chip of the analog-to-digital conversion circuit can be remarkably improved, and the operation precision is greatly improved compared with that of the conventional ADC chip.
The measurement is obviously different from the traditional classical linear analog-to-digital conversion mode related to voltage, but is a novel nonlinear measurement mode established according to the theory of mathematical measure theory, so that the small difference of voltage can be accurately distinguished, and the effect is greatly improved compared with the original precision.
The value of Q, N, K is determined by selecting one or more of the above measures according to chip program and data memory size, speed of operation, required accuracy and completion time, (e.g., Q = 128: representing 128 arrays, N = 32: representing chips each having 32 analog-to-digital converted values, and K = 2: representing the square of the corresponding value of the set element)
The rule of selection is as follows:
(1) the larger Q and N are, the larger the chip data memory is needed to be, otherwise, the smaller the chip data memory is needed to be;
(2) the larger K is, the longer the data processing time of the chip is, otherwise, the shorter the data processing time of the chip is;
(3) the more the selection measure types are, the longer the data processing time of the chip is, otherwise, the shorter the data processing time is;
(4) in short, the more the selection measure types are, the larger the value of Q, N, K is, the larger the chip program memory and the data memory are needed, the longer the data processing time is, and the higher the accuracy is; if the selection metric is smaller in kind and the value of Q, N, K is smaller, the chip program memory and the data memory are required to be smaller, the data processing time is shorter, and the accuracy is lowered.
The foregoing is merely an example of the present invention, and common general knowledge in the field of known specific structures and characteristics of the embodiments is not described herein in any greater extent than that known to persons of ordinary skill in the art at the filing date or before the priority date of the present invention, so that all of the prior art in this field can be known and can be applied with the ability of conventional experimental means before this date. It should be noted that, for those skilled in the art, without departing from the structure of the present invention, several changes and modifications can be made, which should also be regarded as the protection scope of the present invention, and these will not affect the effect of the implementation of the present invention and the applicability of the patent. The scope of the claims of the present application shall be determined by the contents of the claims, and the description of the embodiments and the like in the specification shall be used to explain the contents of the claims.

Claims (8)

1. A data processing algorithm, comprising the steps of:
s1, setting arrays Q, N analog-to-digital conversion values of each array and the corresponding power k of the calculation base number X;
s2 output array G1、G2、G3、…、GQEach array is N analog-to-digital conversion values, which are sequentially marked as G1(AD1,1、AD1,2、…、AD1,(N-1)、AD1,N)、G2(AD2,1、AD2,2、…、AD2,(N-1)、AD 2,N)、G3(AD3,1、AD3,2、…、AD3,(N-1)、AD3,N)、…、GQ(ADQ,1、ADQ,2、…、ADQ,(N-1)、ADQ,N);
S3, calculating G1To GQMedian measure values for each array;
s4, calculating G1To GQThe minimum value measurement value of each array;
s5, calculating G1To GQThe maximum value measurement value of each array;
s6, calculating G1To GQThe mode measurement value of each array;
s7, calculating G1To GQMeasuring the harmonic mean value of each array;
s8, calculating G1To GQMeasuring the geometric mean value of each array;
s9, calculating G1To GQMultidimensional measurements of each array.
2. The data processing algorithm of claim 1, wherein G in step S31To GQThe operation process of the median measurement value of each array comprises the following steps:
A1. get G1To GQMedian X of each array1,i(i =1, 2, 3, ·, Q) are respectively denoted as X1,1、X1,2、 X1,3、…X1,Q
G1Median number X of1,1Calculating, will G1The output values of the analog-to-digital conversion are rearranged in order of magnitude: AD1 ≤ AD2 ≤ … ≤ ADN-1 ≤ADN,
If N is odd, then the median X1,1 = ADi,i=(N + 1)÷ 2,
If N is an even number, then the median X1,1=(ADi + ADi+1)÷ 2,i=N÷2,
G2To GQMedian number X of1,2To X1,NValue process and G1The consistency is achieved;
A2. calculation of G1To GQMedian measure for each array: pM(M) = X1,1 k+ X1,2 k + … + X1,Q k
3. The data processing algorithm of claim 1, wherein G in step S41To GQThe operation process of the minimum value measurement value of each array comprises the following steps:
B1. get G1To GQMinimum value X of each array2,i (i =1, 2, 3, ·, Q), each denoted X2,1、X2,2、 X2,3、…X2,Q:
X2,i ≤ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N);
B2. Calculation of G1To GQMinimum value measurement values of each array: pL(L) = X2,1 k+ X2,2 k + … + X2,Q k
4. The data processing algorithm of claim 1, characterized in thatIn step S5, G1To GQThe operation process of the maximum value measurement value of each array comprises the following steps:
C1. get G1To GQMaximum value X of each array3,i(i =1, 2, 3, ·, Q), each denoted X3,1、X3,2、 X3,3、…X3,Q;
X3,i≥ ADi,j (1 ≤ i ≤ Q ,j=1,2,3,···,N),
C2. Calculation of G1To GQMaximum value measurement values of each array: pH(H) = X3,1 k+ X3,2 k + … + X3,Q k
5. The data processing algorithm of claim 1, wherein G in step S61To GQThe operation process of the mode measurement value of each array comprises the following steps:
D1. get G1To GQMode X of each array4,i(i =1, 2, 3, ·, Q), each denoted X4,1、X4,2、 X4,3、…X4,Q
If there are r different values, in the same array Gj(j is more than or equal to 1 and less than or equal to Q), the repeated occurrence times are as many as the maximum repeated occurrence times, and the mode X is4,jEqual to the arithmetic mean of r different values,
if in the same array Gj(j is more than or equal to 1 and less than or equal to Q), each number only appears once, then X4,jEqual to the arithmetic mean of the array;
D2. calculation of G1To GQMeasurement of the mode of each array: pS(S) = X4,1 k+ X4,2 k + … + X4,Q k
6. The data processing algorithm of claim 1, wherein G in step S71To GQThe operation process of the harmonic mean measurement value of each array comprises the following stepsThe method comprises the following steps:
E1. get G1To GQHarmonic mean X for each array5,i(i =1, 2, 3, ·, Q), each denoted X5,1、X5,2、 X5,3、…X5,Q
If for GiAny one of ADi,jAre both greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N);
then X5,i= N ÷ (1 ÷ AD ÷ or greater than N ÷i,1+1÷ADi,2+…+1÷ADi,N)]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1. ltoreq. i.ltoreq. Q, j =1, 2, N), then X5,i= 1;
If ADi,jIs not equal to 0 (1 ≦ i ≦ Q, j =1, 2, 3 ·, N), then X5,i = 0;
E2. Calculation of G1To GQHarmonic mean measure for each array: pR(R) = X5,1 k+ X5,2 k + … + X5,Q k
7. The data processing algorithm of claim 1, wherein G in step S81To GQThe operation process of the geometric mean measurement value of each array comprises the following steps:
F1. get G1To GQMaximum value X of each array6,i(i =1, 2, 3, ·, Q), each denoted X6,1、X6,2、 X6,3、…X6,Q
If for GiAny one of ADi,jAre all greater than 0, (1. ltoreq. i.ltoreq. Q, j =1, 2, 3, N),
then X6,i= [ greater than or equal to (AD)i,1•ADi,2···ADi,N)1/N]The smallest integer of (a);
if for GiAt least one AD being presenti,jEqual to 0 and one ADi,jGreater than 0 (1 ≤ andi ≦ Q, j =1, 2, ·, N), then X6,i= 1;
If for Gi,ADi,jIs ≡ 0 (1 ≦ i ≦ Q, j =1, 2, 3, N), then X6,i= 0;
F2. Calculation of G1To GQGeometric mean measurement value P of each arrayJ(J) = X6,1 k+ X6,2 k + … + X6,Q k
8. The data processing algorithm according to claims 1-7, wherein G in step S91To GQThe operation process of the multidimensional measurement value of each array comprises the following steps:
H1. select G1To GQThe following steps:
median X1,iArray Q of1(X1,1、X1,2、 X1,3、…X1,Q);
Minimum value X2,iArray Q of2(X2,1、X2,2、 X2,3、…X2,Q);
Maximum value X3,iArray Q of3(X3,1、X3,2、 X3,3、…X3,Q);
X of the mode4,iArray Q of4(X4,1、X4,2、 X4,3、…X4,Q);
X of harmonic mean5,iArray Q of5(X5,1、X5,2、 X5,3、…X5,Q);
X of geometric mean6,iArray Q of6(X6,1、X6,2、 X6,3、…X6,Q);
H2. Calculation of G1To GQMeasuring value of multidimensional measure:
PT(T) = PM(M)•PL(L)•PH(H)•PS(S)•PR(R)•PJ(J)
= (X1,1 k+ X1,2 k + … + X1,Q k)•(X2,1 k+ X2,2 k + … + X2,Q k)•(X3,1 k+ X3,2 k + … + X3,Q k)
•(X4,1 k+ X4,2 k + … + X4,Q k)•(X5,1 k+ X5,2 k + … + X5,Q k)•(X6,1 k+ X6,2 k + … + X6,Q k)。
CN202110317847.2A 2021-03-25 2021-03-25 Data processing algorithm Pending CN113300709A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110317847.2A CN113300709A (en) 2021-03-25 2021-03-25 Data processing algorithm
PCT/CN2022/080921 WO2022199427A1 (en) 2021-03-25 2022-03-15 Data processing algorithm applied to analog-to-digital conversion circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110317847.2A CN113300709A (en) 2021-03-25 2021-03-25 Data processing algorithm

Publications (1)

Publication Number Publication Date
CN113300709A true CN113300709A (en) 2021-08-24

Family

ID=77319148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110317847.2A Pending CN113300709A (en) 2021-03-25 2021-03-25 Data processing algorithm

Country Status (2)

Country Link
CN (1) CN113300709A (en)
WO (1) WO2022199427A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022199427A1 (en) * 2021-03-25 2022-09-29 张家炎 Data processing algorithm applied to analog-to-digital conversion circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275169A1 (en) * 2015-03-17 2016-09-22 Infoutopia Co., Ltd. System and method of generating initial cluster centroids
CN107181489A (en) * 2016-03-11 2017-09-19 北京君正集成电路股份有限公司 A kind of analog-to-digital conversion calibration method and device
CN110768671A (en) * 2019-10-17 2020-02-07 西安交通大学 Off-chip calibration method and system for successive approximation type analog-to-digital converter
CN111579963A (en) * 2020-05-15 2020-08-25 珠海南方集成电路设计服务中心 ADC chip test circuit and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113300709A (en) * 2021-03-25 2021-08-24 张家炎 Data processing algorithm

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160275169A1 (en) * 2015-03-17 2016-09-22 Infoutopia Co., Ltd. System and method of generating initial cluster centroids
CN107181489A (en) * 2016-03-11 2017-09-19 北京君正集成电路股份有限公司 A kind of analog-to-digital conversion calibration method and device
CN110768671A (en) * 2019-10-17 2020-02-07 西安交通大学 Off-chip calibration method and system for successive approximation type analog-to-digital converter
CN111579963A (en) * 2020-05-15 2020-08-25 珠海南方集成电路设计服务中心 ADC chip test circuit and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022199427A1 (en) * 2021-03-25 2022-09-29 张家炎 Data processing algorithm applied to analog-to-digital conversion circuit

Also Published As

Publication number Publication date
WO2022199427A1 (en) 2022-09-29

Similar Documents

Publication Publication Date Title
Corless Generalized companion matrices in the Lagrange basis
CN113300709A (en) Data processing algorithm
Cao et al. Construction and enumeration for self-dual cyclic codes of even length over F2m+ uF2m
US20170169132A1 (en) Accelerated lookup table based function evaluation
Alaeiyan et al. Cyclically domination polynomial of molecular graph of some nanotubes
Liu A p-adic Supercongruence for Truncated Hypergeometric Series _7F_6 7 F 6
CN102375721A (en) Matrix multiplying method, graphic processor and electronic equipment
Sharma et al. New optimal fourth order iterative method for solving nonlinear equations
Coolsaet et al. Generation and properties of nut graphs
US8130129B2 (en) Analog-to-digital conversion
Sinclair Ensemble averages when β is a square integer
Kola et al. A Lower Bound for Radio $ k $-chromatic Number of an Arbitrary Graph
Aschbacher The classification of the finite simple groups
Han et al. Difference operators for partitions and some applications
Akinfenwa et al. SIMPSON'S 3/8-TYPE BLOCK METHOD FOR STIFF SYSTEMS OF ORDINARY DIFFERENTIAL EQUATIONS
RU2698413C1 (en) Device for comparing numbers in a system of residual classes
Akbari et al. Some criteria for a signed graph to have full rank
Venkitesh Covering symmetric sets of the Boolean cube by affine hyperplanes
Jiang et al. Accurate evaluation algorithm for bivariate polynomial in Bernstein–Bézier form
Ebrahimzadeh et al. A new characterization of symplectic groups C2 (3n)
Green Linear complexity of modulo-m power residue sequences
Zhang et al. On the Existence of Certain Optimal Self-Dual Codes with Lengths Between $74 $ and $116$
Rabago Halley’s method for finding roots of p-adic polynomial equations
Vera-López et al. A generalization of Catalan numbers
Mohamad et al. The piecewise polynomial collocation method for the solution of Fredholm equation of second kind by SOR iteration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination