TWI426396B - A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples - Google Patents

A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples Download PDF

Info

Publication number
TWI426396B
TWI426396B TW098121752A TW98121752A TWI426396B TW I426396 B TWI426396 B TW I426396B TW 098121752 A TW098121752 A TW 098121752A TW 98121752 A TW98121752 A TW 98121752A TW I426396 B TWI426396 B TW I426396B
Authority
TW
Taiwan
Prior art keywords
sample
samples
signal
differential
interval
Prior art date
Application number
TW098121752A
Other languages
Chinese (zh)
Other versions
TW201101051A (en
Original Assignee
Lee Ming Inst Technology
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 Lee Ming Inst Technology filed Critical Lee Ming Inst Technology
Priority to TW098121752A priority Critical patent/TWI426396B/en
Publication of TW201101051A publication Critical patent/TW201101051A/en
Application granted granted Critical
Publication of TWI426396B publication Critical patent/TWI426396B/en

Links

Landscapes

  • Complex Calculations (AREA)

Description

利用不等間距之信號樣本計算該信號各點之數值微分方法及其裝置 Numerical differential method for calculating points of the signal by using signal samples with unequal spacing and device thereof

數位信號處理之領域 Field of digital signal processing

目前的數值微分法,總結可歸納為下列三種方式。 The current numerical differential method can be summarized into the following three ways.

(一)向前差分方式: (1) Forward differential mode:

這種方式的數學式形式為: The mathematical form of this approach is:

f(n)(ti)為信號f(t)(t為時間變數)在t=ti時之第n次微分;D1(n,j)(j=1,2,....m)為m個事先建立的常數;△t為對f(t)擷取樣本之間距。 f (n) (t i ) is the nth derivative of the signal f(t) (t is a time variable) at t=t i ; D 1 ( n , j )( j =1, 2,... m) is a previously established constant of m; △ t for the f (t) to retrieve samples of the pitch.

由(2)-1式可知,f(n)(ti)係利用從t=ti開始向前對f(t)所擷取的m個樣本計算而得。 It can be seen from equation (2)-1 that f (n) (t i ) is calculated by using m samples taken from f(t) starting from t=t i .

(二)後退差分方式: (2) Backward difference mode:

這種方式的數學式形式為; The mathematical form of this method is;

其中,D2(n,j)(j=1,2,.....m)亦為事先建立的m個常數,而△t亦為對f(t)擷取樣本之間距。 Where D 2 ( n , j )( j =1, 2, . . . m ) is also the m constants established in advance, and Δ t is also the spacing between the samples of f(t)撷.

由(2)-2式可知,f(n)(ti)係利用從t=ti開始向後對f(t)所擷取的m個樣本計算而得。 It can be seen from equation (2)-2 that f (n) (t i ) is calculated by using m samples taken from f(t) starting from t=t i .

(三)中間差分方式: (3) Intermediate differential mode:

這種方式的數學式形式為; The mathematical form of this method is;

其中,D3(n,j)及D4(n,j)(j=12,....u)為事先建立的2u個常數,而△t亦為對f(t)截取樣本之間距。 Where D 3 ( n , j ) and D 4 ( n , j )( j =12,.... u ) are 2u constants established in advance, and Δ t is also the interval between the samples of f(t) .

由(2)-3式可知,f(n)(ti)係利用從t=ti開始,分別向前及向後對f(t)所擷取的2u個樣本計算而得。 It can be seen from equation (2)-3 that f (n) (t i ) is calculated from t=t i and forward and backward for 2u samples taken by f(t).

上面的三個數學式主要係由Gregory-Newton公式及Taylor’s展開試推演而來。由於篇幅所限,且此推演過程亦為習此行之學者所周知者,故恕筆者不再贅述。 The above three mathematical formulas are mainly derived from the Gregory-Newton formula and Taylor’s. Due to space limitations, and the process of this deduction is well known to scholars of this class, I will not repeat them.

壹、例如,吾人想計算信號f(t)的數值微分,則便需事先將f(t)一段段地分割成眾多個區間,如圖一所示,吾人將其等距離地分隔成第1、第2、.....第j-1、第j、第j+1、...... 等等眾多個區間。 壹 For example, if we want to calculate the numerical differentiation of the signal f(t), we need to divide f(t) into a number of intervals in advance. As shown in Figure 1, we divide it equidistantly into the first one. , 2nd, ..... j-1, j, j+1, ... Wait a lot of intervals.

當計算第j區間之f(t)各點數值微分時,若使用(2)-1式除需利用其區間(即第j區間)之樣本外,尚需利用其下一區間(即第j+1區間)之樣本;使用(2)-2式則尚需利用其前一區間之樣本;若改用(2)-3式其前一與後一區間之部分樣本則需被利用到。 When calculating the numerical differentiation of each point of f(t) in the jth interval, if the (2)-1 type is used, except for the sample of the interval (ie, the jth interval), the next interval (ie, the jth) is still needed. Samples of +1 interval); if using (2)-2, you need to use the sample of the previous interval; if you use the (2)-3 formula, some samples of the previous and subsequent intervals need to be used.

無論如何,吾人無法僅利用自己本身區間內之樣本去計算自己區間內各點之數值微分;這是目前數值微分計算之缺點。此外,它尚有另一缺點,那就是所有樣本與樣本間之間距都必須相等。 In any case, we can't just use the samples in our own interval to calculate the numerical differentiation of each point in our own interval; this is the shortcoming of the current numerical differential calculation. In addition, it has another disadvantage, that is, the distance between all samples and the sample must be equal.

為此,筆者乃提出此最新之數值微分計算法。 To this end, the author is proposing this latest numerical differential calculation method.

貳、由Lagrange’s多項式所推演出之計算法: 贰, the calculation method derived from Lagrange’s polynomial:

假定信號f(t)(t為時間變數)在t [0,T](T R)中可近似地以t之n-1次多項式來表 示,則吾人可在此[0,T]中任意地對f(t)擷取n個樣本f(t1)、f(t2)、......f(tn),並用 Lagrange’s多項式將f(t)近似地表示於下: Assume that the signal f(t) (t is a time variable) at t [0, T ] ( T R ) can be approximated by the n-1 polynomial of t, then we can arbitrarily f find n samples f(t 1 ), f(t 2 in f(t) in this [0, T] ), ... f(t n ), and use f Lagrange's polynomial to approximate f(t) to the following:

其中,L(i,t)即為如前(1)-3所表示。 Where L(i,t) is represented as before (1)-3.

在(4)-1式中,對t作第一次微分,並令t=t k (t k [0,T])代入後可得: In equation (4)-1, the first differential is made for t and t = t k ( t k [0, T ]) can be obtained after substitution:

(4)-2式便是僅利用[0,T]中之n個樣本f(ti)(i=1,2,...,n)去計算其自己區間[0,T]中各t=tk點之一次數值微分f’(tk);並且,值得注意的是,f(ti)中任意兩相鄰之樣本間距不一定相等。 (4)-2 is to use only n samples f(t i ) in [0,T] (i=1,2,...,n) to calculate their own intervals [0,T] One of t = t k points has a differential value f'(t k ); and, it is worth noting that any two adjacent sample spacings in f(t i ) are not necessarily equal.

上面在推導一次數值微分之數學式(4)-2時,吾人係在(4)-1式兩邊對t一次微分這會使得f’(t)變成t之n-2次多項式;因此,如要使(4)-2式之精確度符合吾人所需,則先決條件便是f’(t)亦可近似地用t之n-2次多項式表示。 When we derive the mathematical formula (4)-2 of numerical differentiation above, we differentiate the t from the (4)-1 type on both sides, which makes f'(t) become the n-2 polynomial of t; therefore, if To make the accuracy of the formula (4)-2 meet our needs, the precondition is that f'(t) can also be approximated by the n-2 polynomial of t.

現在,假定吾人是先選取n與m(n,mN;且n>m),使得f(m)(t)可近似地用t之n-m-1次多項式表示,則f(t)當然可以用t之n-1次多項式更近似地表示出。 Now, suppose that we are the first to choose n and m (n, m N; and n > m), such that f (m) (t) can be approximated by the nm-1 polynomial of t, and f(t) can of course be more closely represented by the n-1 polynomial of t.

於是,吾人便可在(4)-1式兩邊對t作m次微分後再令t=tk代入而得: Therefore, we can make m differentials on both sides of (4)-1 and then let t=t k be substituted:

(4)-3式便是f(t)在t=tk時之m次數值微分的近似數學式。 The equation (4)-3 is an approximate mathematical expression of the differential value of the m-number of f(t) at t=t k .

然而,(4)-3式還不是很好的計算方法,於此筆者將提出更好的計算方法於下: However, (4)-3 is not a good calculation method, and the author will propose a better calculation method:

如果f(t),f’(t),...,f(m)(t)在t [0,T]皆可近似地用t之n-2次多項式表示(此時(4)-1式當然更能近似地成立),則(4)-1式中之f(t)若以f’(t)替代之則可得: If f(t), f'(t),...,f (m) (t) is at t [0, T ] can be approximated by the n-th order polynomial of t (in this case, (4)-1 is of course more approximationally established), then f(t) in (4)-1 is The f'(t) alternative is available:

將上式之i改為u1,對t微分後再以t=tk代入可得: Change i of the above formula to u 1 , and then substitute t for t = t k to obtain:

上式右邊中之用(4)-2式代入,可得: In the right side of the above formula Substituting (4)-2, you can get:

現在,(4)-1式中之f(t)再以f"(t)替代之,依與上述相同之方式推導之,可得: Now, f ( t ) in the formula (4)-1 is replaced by f "( t ), and is derived in the same manner as described above.

上述之推導方式繼續進行下去,最後可得: The above derivation will continue, and finally:

將上式移到最前面,並以i替代u m ,則可得: Above Move to the front and replace u m with i , you can get:

上式即是前面的(1)-1式,前式重寫於下: The above formula is the previous (1)-1 type, and the former formula is rewritten below:

叁、由Taylor’s展開式所推導出之計算法: 计算, the calculation method derived from Taylor’s expansion:

如果f(t)在t[0,T]中,可用t之n次多項式近似地表示出,則f(t)可用t=t k (t k [0,T])為展開點,而用Taylor’s展開式近似地表示成: If f ( t ) is at t In [0, T ], it can be approximated by the nth degree polynomial of t, then f(t) can be used t = t k ( t k [0, T ]) is the expansion point, and is approximated by Taylor's expansion:

現在,在[0,T]中任意選取n點t 1,t 2.…t n 後分別一一代入上式,並將f(t k )移到左邊,則可得下列聯立方程組: Now, in the [0, T ] arbitrarily select the n points t 1 , t 2 .... t n and then into the above equation one by one, and move f ( t k ) to the left, you can get the following simultaneous equations :

(5)-2式可用矩陣方程式表示成: (5)-2 can be expressed as a matrix equation:

因為函數集合{(t-t k ) i |i=1,2,…n}在t R必互為線性獨立,因此(5)-2式之係數行列式必不為零,由此知(5)-3式必有唯一的一組解,此解為: Because the function set {( t - t k ) i | i =1, 2,... n } is at t R must be linearly independent of each other, so the coefficient determinant of (5)-2 must not be zero, so that (5)-3 must have a unique set of solutions, which is:

由(5)-4式可清楚地看出,區間[0,T]中的任何一點t=t k ,其f(t)的j次數值微分f (j)(t k )(j=1,2,…n)均可利用同一區間[0,T]中的預先擷取的任意n個樣本f(t i )(i=1,2,…n)計算,並且樣本與樣本間之間距可不必相等。 It can be clearly seen from equation (5)-4 that any point in the interval [0, T ] t = t k , the j-order value of f ( t ) is differential f ( j ) ( t k ) ( j =1 , 2,... n ) can be calculated by using any n samples f ( t i ) ( i =1, 2, ... n ) pre-fetched in the same interval [0, T ], and the distance between the sample and the sample It does not have to be equal.

肆、計算精度之分析: 肆, analysis of calculation accuracy:

前述數值微分之計算精度,與下列因素直接發生關係: The accuracy of the above numerical differentiation is directly related to the following factors:

1、f(t)所含信號成分中之最高頻率f m 1. The highest frequency f m of the signal components contained in f ( t ).

2、所決定待計算區間[0,T]之T的大小。 2. Determine the size of T to be calculated for the interval [0, T ].

3、將f(t)用t之n次多項式表示之n的大小。 3. Let f ( t ) denote the size of n by the polynomial of n times t.

因為一般所處理的信號,特別是通訊中被傳遞的信號,都為弦式信號之組合;因此吾人將以弦式信號來分析數值微分的計算精度。 Because the signals processed in general, especially the signals transmitted in communication, are a combination of string signals; therefore, we will analyze the accuracy of numerical differentiation with a string signal.

茲設f(t)為: Let f ( t ) be:

其中:ω i =2πf i C i ,θ i 均為常數;f i 為各個信號成分的頻率,i=1,2,....。 Where: ω i = 2 πf i ; C i , θ i are constants; f i is the frequency of each signal component, i = 1, 2, ....

如果f i 中之最大者為f m ,則其所對應之信號成分為:g m (t)=C m cos(ω m t+θ m )。將此最高頻率f m 之信號以t=0為展開點,用Taylor’s展開式後,可寫成: If the largest of f i is f m , then the corresponding signal component is: g m ( t ) = C m cos( ω m t + θ m ). The signal of the highest frequency f m is set to t =0 as the expansion point. After Taylor's expansion, it can be written as:

g m (t)如果可用t之2n+1次多項式表示,則可在上式右邊第一個級數取至n項,而第一個級數則取至n+1項,而成為: g m ( t ) If the 2n+1 polynomial of t can be used, the first series on the right side of the above formula can be taken to n items, and the first series is taken to n+1, and becomes:

(6)-2式右邊第一個級數第n+1項與前一項之比值的絕對值為,而第二個級數第n+2項與前一項比值的絕對值為(6) The absolute value of the ratio of the n+1th term of the first series to the right of the previous term And the absolute value of the ratio of the n+2th item of the second series to the previous item .

因為t [0,T],即t的最大值為T,因此上述兩個比值之t可用T代入而成為Because t [0, T ], that is, the maximum value of t is T, so the t of the above two ratios can be substituted by T and .

吾人可依事先所要求之精度,而決定出一個很小的數ε,以使下兩式成立: We can determine a small number ε according to the precision required by the prior, so that the following two formulas are established:

解上兩個不等式可得: Solving two inequalities is available:

因n>0,故其解為: Since n>0, the solution is:

其中: among them:

因為(6)-2-1係取至2n+1項,故: Because (6)-2-1 is taken to 2n+1, it is:

(6)-5式提供了吾人在計算數值微分時,所需精度的分析方向。 Equation (6)-5 provides the direction of analysis of the required accuracy when calculating numerical differentiation.

圖二所示為本發明所揭示的一項簡單實施例。茲以下列數點說明之: Figure 2 shows a simple embodiment of the present invention. Here are the points to illustrate:

(一)圖中1為A/D轉換器。按一般A/D轉換器中對信號樣本的擷取速率大都是固定的;但這裡可為非固定的。 (1) In the figure, 1 is an A/D converter. The rate of picking up signal samples in a typical A/D converter is mostly fixed; however, it can be non-fixed here.

(二)圖示2係在t[0,T]區間中,做為將A/D所擷取到之樣本f(ti)暫時儲存用之暫存器。 (2) Figure 2 is in t In the [0, T] interval, it is used as a temporary storage device for temporarily storing the sample f(t i ) captured by the A/D.

(三)吾人事先將參數SL(m,i,tk)(m,i,k=1,2,...n,nN)逐一計算妥當後存於記憶體中,此記憶體便為圖中之3所示。 (3) We have previously assigned the parameter SL(m,i,t k )(m,i,k=1,2,...n,n N) Calculated one by one and stored in the memory, this memory is shown as 3 in the figure.

(四)圖中之4便為之計算器,其計算結果之輸出便為f(t)在t=tk時之m次數值微分。 (4) 4 of the figure is The calculator, the output of the calculation result is the differential value of the m-time value of f(t) at t=t k .

又,圖中之各個電路方塊因均係為熟知之技術,故恕發明人對此之說明從略。 Moreover, the various circuit blocks in the figures are all well-known techniques, and thus the inventors will be omitted from this description.

1‧‧‧A/D轉換器 1‧‧‧A/D converter

2‧‧‧暫存器 2‧‧‧ register

3‧‧‧記憶體 3‧‧‧ memory

4‧‧‧連加計算器 4‧‧‧Plus calculator

圖一:待微分信號曲線被分割成等區間圖示。 Figure 1: The differential signal curve is divided into equal interval graphs.

圖二:m次數值微分之實施例計算方塊圖。 Figure 2: Block diagram of an embodiment of the m-number value differential.

1‧‧‧A/D轉換器 1‧‧‧A/D converter

2‧‧‧暫存器 2‧‧‧ register

3‧‧‧記憶體 3‧‧‧ memory

4‧‧‧連加計算器 4‧‧‧Plus calculator

Claims (3)

一種樣本間距不需相等的m次(m為事先界定的固定之正整數,以下所述之m與此m相同)數值微分計算裝置,該裝置主要乃係包括:一個做為可在一區間[0,T](T R)內對待微分之信號f(t)任意不等間距地擷取n個(n為事先界定的固定正整數,以下所述之n與此n相同)樣本f(tn)用之A/D轉換器;一個做為可暫時儲存上述A/D轉換器所擷取到之n個樣本f(tn)用之樣本記憶體;n個做為計算Lagrange多項式L(i,t)在t=tn之一次微分L’(i,tn)用之微分計算器;其中L(i,t)為: t為時間變數;m個做為可計算SL(m,i,t k )用之計算器;其中: ;及一個做為可計算用之計算器;其中,f(ti)乃係讀自上述樣本記憶體中之樣本資料者。 A sample spacing does not need to be equal to m times (m is a fixed positive integer defined in advance, m is the same as m described below). The numerical differential calculation device mainly includes: one as an interval [ 0,T]( T R ) The signal f(t) to be differentiated is arbitrarily arbitrarily taken n (n is a fixed positive integer defined in advance, n is the same as n), and sample f(t n ) is used for A/ D converter; one as a sample memory for temporarily storing the n samples f(t n ) captured by the above A/D converter; n as a calculation Lagrange polynomial L(i, t) at t =t n is a differential calculator for the differential L'(i,t n ); where L(i,t) is: t is a time variable; m is used as a calculator for calculating SL ( m , i , t k ); ; and one as computable A calculator is used; wherein f(t i ) is the sample data read from the sample memory. 如申請專利範圍第1項所述之裝置,其中所蘊涵之一項技術特徵乃在於:藉由在[0,T]區間中對f(t)所擷取到之同一組n個樣本f(tn),即可計算在t=ti(i=1,2,...,n)之一次、二次、...、m次數值微分者。 As for the device described in claim 1, the technical feature contained therein is that the same set of n samples f is obtained by f(t) in the interval [0, T] ( t n ), it is possible to calculate the differential of the value of the first, second, ..., m times of t = t i (i = 1, 2, ..., n). 如申請專利範圍第1項所述之裝置,其中所蘊涵之一項技術特徵乃在於:在[0,T]區間中對f(t)所擷取之n個樣本,其樣本與樣本間之間距可不必相等者。 As for the device described in claim 1, the technical feature contained therein is that n samples taken from f(t) in the interval [0, T] are between the sample and the sample. The spacing may not necessarily be equal.
TW098121752A 2009-06-29 2009-06-29 A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples TWI426396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098121752A TWI426396B (en) 2009-06-29 2009-06-29 A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098121752A TWI426396B (en) 2009-06-29 2009-06-29 A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples

Publications (2)

Publication Number Publication Date
TW201101051A TW201101051A (en) 2011-01-01
TWI426396B true TWI426396B (en) 2014-02-11

Family

ID=44836855

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098121752A TWI426396B (en) 2009-06-29 2009-06-29 A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples

Country Status (1)

Country Link
TW (1) TWI426396B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW439039B (en) * 1995-01-27 2001-06-07 Sony Corp Method and apparatus for forming a font and the font produced, method and apparatus for drawing a blurred figure
TW473680B (en) * 2000-07-18 2002-01-21 Longitude Inc Financial products having demand-based, adjustable returns, and trading exchange therefor
TWI222574B (en) * 2002-05-23 2004-10-21 Herng-Jer Lee Apparatus and method for efficiently approximating FIR filters by low-order linear-phase IIR filters

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW439039B (en) * 1995-01-27 2001-06-07 Sony Corp Method and apparatus for forming a font and the font produced, method and apparatus for drawing a blurred figure
TW473680B (en) * 2000-07-18 2002-01-21 Longitude Inc Financial products having demand-based, adjustable returns, and trading exchange therefor
TWI222574B (en) * 2002-05-23 2004-10-21 Herng-Jer Lee Apparatus and method for efficiently approximating FIR filters by low-order linear-phase IIR filters

Also Published As

Publication number Publication date
TW201101051A (en) 2011-01-01

Similar Documents

Publication Publication Date Title
CN103674062B (en) Based on the method for Allan variance and arma modeling analysis raising gyroscope survey precision
WO2019104912A1 (en) Method and apparatus for obtaining residual gravity anomaly
CN111397755B (en) Correction method for absolute error of temperature measuring instrument
WO2008105269A1 (en) Coke-oven wall-surface evaluating apparatus, coke-oven wall-surface repair supporting apparatus, coke-oven wall-surface evaluating method, coke-oven wall-surface repair supporting method, and computer program
ES2354330B1 (en) METHOD FOR CALCULATING MEASUREMENT MEASURES BETWEEN TEMPORARY SIGNS.
CN103675172A (en) Gas chromatograph data processing device, and data processing method
Wergen et al. Rounding effects in record statistics
CN109813269A (en) Structure monitoring sensor on-line calibration data sequence matching process
Rakitzis et al. A new memory-type monitoring technique for count data
TWI426396B (en) A numerical differential method and a device for calculating the points of the signal using unequally spaced signal samples
CN105074799B (en) Hash value generation device
CN104359376A (en) Device and method for measuring diameter of underground pipe network
CN103403542A (en) Data processing device for gas chromatograph and data processing program used in same
CN102624367B (en) Multichannel impulsive synchronization recognition device and method
CN102405415A (en) Noise suppression techniques in high precision long-term frequency/timing measurements
CN103323063B (en) Ultrasonic flow meter and measurement method for time difference thereof
KR20170074418A (en) Apparatus and method for converting k-mer for measuring similarity of sequences
CN106997355B (en) Method and device for obtaining distance and determining shortest distance line segment based on Mongodb
Cheng et al. Local analysis of the fully discrete local discontinuous Galerkin method for the time-dependent singularly perturbed problem
Cao et al. Pulse deinterleaving using isomorphic subsequences
CN106610945A (en) Improved ontology concept semantic similarity computing method
Rashidinia et al. Retraction Note: Survey of B-spline functions to approximate the solution of mathematical problems
CN112541157A (en) Signal frequency accurate estimation method
CN113591239B (en) Method, device and equipment for determining stress condition of pipe column
CN108917964A (en) A kind of thermocouple and temperature conversion method based on FPGA

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees