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 PDFInfo
- 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
Links
Landscapes
- Complex Calculations (AREA)
Description
數位信號處理之領域 Field of digital signal processing
目前的數值微分法,總結可歸納為下列三種方式。 The current numerical differential method can be summarized into the following three ways.
(一)向前差分方式: (1) Forward differential mode:
這種方式的數學式形式為:
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:
這種方式的數學式形式為;
其中,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:
這種方式的數學式形式為;
其中,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)近似地表示於下:
其中,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])代入後可得:
(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代入而得:
(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)替代之則可得:
將上式之i改為u1,對t微分後再以t=tk代入可得:
上式右邊中之用(4)-2式代入,可得:
現在,(4)-1式中之f(t)再以f"(t)替代之,依與上述相同之方式推導之,可得:
上述之推導方式繼續進行下去,最後可得:
將上式移到最前面,並以i替代u m ,則可得:
上式即是前面的(1)-1式,前式重寫於下:
叁、由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展開式近似地表示成:
現在,在[0,T]中任意選取n點t 1,t 2.…t n 後分別一一代入上式,並將f(t k )移到左邊,則可得下列聯立方程組:
(5)-2式可用矩陣方程式表示成:
因為函數集合{(t-t k ) i |i=1,2,…n}在t R必互為線性獨立,因此(5)-2式之係數行列式必不為零,由此知(5)-3式必有唯一的一組解,此解為:
由(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)為:
其中:ω 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展開式後,可寫成:
g m (t)如果可用t之2n+1次多項式表示,則可在上式右邊第一個級數取至n項,而第一個級數則取至n+1項,而成為:
(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 .
吾人可依事先所要求之精度,而決定出一個很小的數ε,以使下兩式成立:
解上兩個不等式可得:
因n>0,故其解為:
其中:
因為(6)-2-1係取至2n+1項,故:
(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)
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)
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 |
-
2009
- 2009-06-29 TW TW098121752A patent/TWI426396B/en not_active IP Right Cessation
Patent Citations (3)
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 |