CN112541157B - Signal frequency accurate estimation method - Google Patents
Signal frequency accurate estimation method Download PDFInfo
- Publication number
- CN112541157B CN112541157B CN202011380638.4A CN202011380638A CN112541157B CN 112541157 B CN112541157 B CN 112541157B CN 202011380638 A CN202011380638 A CN 202011380638A CN 112541157 B CN112541157 B CN 112541157B
- Authority
- CN
- China
- Prior art keywords
- frequency
- signal
- spf
- signal frequency
- maximum value
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 21
- 238000004364 calculation method Methods 0.000 claims abstract description 10
- 238000005070 sampling Methods 0.000 claims description 9
- 238000010183 spectrum analysis Methods 0.000 claims description 8
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 7
- 238000001228 spectrum Methods 0.000 claims description 7
- 238000004590 computer program Methods 0.000 abstract description 4
- 238000004458 analytical method Methods 0.000 abstract description 2
- 238000001514 detection method Methods 0.000 abstract description 2
- 238000011156 evaluation Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000010205 computational analysis Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/14—Fourier, Walsh or analogous domain transformations, e.g. Laplace, Hilbert, Karhunen-Loeve, transforms
- G06F17/141—Discrete Fourier transforms
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Mathematical Optimization (AREA)
- Pure & Applied Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Discrete Mathematics (AREA)
- Algebra (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Measuring Frequencies, Analyzing Spectra (AREA)
Abstract
The invention relates to a single-frequency sinusoidal signal frequency calculation method which is suitable for engineering analysis and performance evaluation needing to acquire accurate signal frequency. The invention provides a detection method which is convenient for realizing a computer program, can calculate the frequency of a single-frequency sinusoidal signal by using smaller sample data, has short time consumption in the process and accurate result, and can be used for solving the practical problem in equipment engineering development. The method has strong logic, is easy to realize computer programs, has better universality, can be applied to test equipment, can greatly improve the accuracy of calculation results, and improves the estimation accuracy of signal frequency by more than 4 times compared with the frequency resolution. Moreover, compared with the traditional FFT (fast Fourier transform) method, the number of required sample points is also greatly reduced, and the calculation time is correspondingly reduced.
Description
Technical Field
The invention relates to a single-frequency sinusoidal signal frequency calculation method which is suitable for engineering analysis and performance evaluation needing to acquire accurate signal frequency.
Background
In the development of a certain equipment system, the frequency of an output signal of a certain product needs to be accurately known, and the accuracy of the frequency represents the key technical characteristics of the product, so that it is important to accurately acquire frequency data.
In general, the method for acquiring the signal frequency includes:
a) Counting method: the signal frequency is converted by counting the number of positive and negative changes or peaks of the signal over a period of time. This method is simple, but is susceptible to large noise and is limited to integers only; to accurately obtain frequency data, a large amount of time is required to accumulate;
b) Filtering technology: the method is difficult to obtain an accurate frequency value and has large error;
c) Computational analysis techniques based on DFT (discrete fourier transform): and carrying out DFT spectrum change on the obtained signal digital sequence through acquisition, and obtaining a signal frequency value through the maximum value of the signal spectrum. To obtain accurate frequency values, a large amount of data (sample points) needs to be effectively acquired, i.e. limited to the frequency resolution.
Although there are various signal frequency acquisition methods, most of the acquired frequency data is not highly accurate or difficult to achieve due to cost, time consumption, and the like. At present, an accurate signal frequency calculation method is a DFT spectrum analysis method adopting a great number of sample points, however, at a high sampling rate, great sample data is required for obtaining an accurate signal frequency, and great digital calculation time consumption is required to be tolerated. It would be valuable to find a signal frequency acquisition method that is computationally inexpensive and results accurate with smaller sample data.
Disclosure of Invention
The invention solves the technical problems that: in order to overcome the defects of the prior art, the frequency of the single-frequency sinusoidal signal is rapidly and accurately calculated by using smaller sample data. The invention provides a detection method which is convenient for realizing a computer program, can calculate the frequency of a single-frequency sinusoidal signal by using smaller sample data, has short time consumption in the process and accurate result, and can be used for solving the practical problem in equipment engineering development.
The technical scheme of the invention is as follows: a signal frequency accurate estimation method comprises the following steps:
step 1: digitally sampling the analyzed single-frequency sinusoidal signal with a sampling rate of Fs; after sampling, a continuous digital signal sequence is formed, denoted as X: x= { x_i } (i=0, 1,2 … … N-1);
step 2: calculating Df, df=fs/N;
step 3: performing PSD power spectrum analysis on X to obtain power spectrum SPF of X, searching the maximum value in the left half value of the SPF, marking as (n, C), wherein C is the maximum value, and n is the serial number of the maximum value; taking about n and 2 SPF elements respectively, and sequentially marking the elements as (n-2, A), (n-1, B), (n+1, D) and (n+2, E);
step 4: and (3) carrying the data into a formula (1) for calculation, and obtaining the frequency F of the measured signal.
The invention further adopts the technical scheme that: in the step 1, a signal sequence is formed according to the sample number requirement of the DFT requirement.
The invention further adopts the technical scheme that: the requirements are as follows: the number of samples is noted as N, which is a positive integer power of 2.
The invention further adopts the technical scheme that: in the step 3, the power spectrum analysis result is recorded as SPF:
effects of the invention
The invention has the technical effects that: the method has strong logic, is easy to realize computer programs, has better universality, can be applied to test equipment, can greatly improve the accuracy of calculation results, and improves the estimation accuracy of signal frequency by more than 4 times compared with the frequency resolution. Moreover, compared with the traditional FFT (Fourier transform) method, the number of required sample points is also greatly reduced, and accordingly, the calculation time is reduced.
Drawings
Fig. 1: signal power spectrum value diagram
Fig. 2: example 1 Signal diagram
Fig. 3: example 1 Signal Power spectrogram
Fig. 4: example 2 Signal diagram
Fig. 5: example 2 Signal Power spectrogram
Detailed Description
In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings are merely for convenience in describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention.
Referring to fig. 1-5, the single frequency sinusoidal signal to be analyzed is digitally sampled, and a continuous digital signal sequence is formed according to the sample number requirement (the number of samples is denoted as N) of the DFT (discrete fourier transform) requirement, which is denoted as X:
X={x i }(i=0,1,2.......N-1) (1)
wherein N is a positive integer power of 2; let the sampling rate be Fs.
PSD (Power spectral Density) power spectral analysis was performed on the digital signal sequence, and the result was noted as SPF:
and searching the maximum value in the left half value of the SPF, and marking the maximum value as (n, C), wherein C is the maximum value, and n is the serial number where the maximum value is located. Taking about n and 2 SPF elements, respectively, and sequentially marking the elements as (n-2, A), (n-1, B), (n+1, D) and (n+2, E), as shown in figure 1, calculating the frequency F of a detected signal according to the following formula:
where Df is the frequency resolution, df=fs/N.
Example 1:
let signal be F (t):
F(t)=1.0·sin(1200·2π·t)+δ(t)
where δ (t) is gaussian noise with a standard deviation of 0.12.
The specific embodiment is as follows:
step one: f (t) is sampled according to fs=10000 Hz to obtain a sequence X of n=1024 points, as shown in fig. 2;
step two: df=fs/n≡9.77Hz;
step three: and (3) carrying out power spectrum analysis on the X to obtain the power spectrum SPF of the X, as shown in figure 3. In the left half of fig. 3, a maximum value of 123 is found. Taking about 2 SPF elements at the position of the serial number 123 of the SPF, and sequentially marking the SPF elements as (121,0.0008), (122,0.0040), (123,0.2372), (124,0.0028) and (125,0.0008);
step four: each data is taken to equation (3) and calculated: f is approximately 1201.12Hz.
The frequency estimation error is 1.12Hz compared to the original signal frequency of 1200 Hz.
Example 2:
let signal be F (t):
F(t)=1.0·sin(4500·2π·t)+δ(t)
where δ (t) is gaussian noise with a standard deviation of 0.3. The specific embodiment is as follows:
step 1: f (t) is sampled according to fs=20000 Hz to obtain a sequence X of n=1024 points, and the signal sequence is shown in fig. 4;
step 2: df=fs/n≡19.53;
step 3: and (3) carrying out power spectrum analysis on the X to obtain the power spectrum SPF of the X, as shown in figure 5. In fig. 5, the maximum value is found to be 230. Taking the number 230 of the SPF and the number 2 of the SPF elements, and sequentially marking the SPF elements as (228,0.0050), (229,0.0110), (230,0.1458), (231,0.0690) and (232,0.0082);
step 4: each data is taken to equation (3) and calculated: f is approximately 4497.24Hz.
The frequency estimation error is-2.76 Hz compared to the original signal frequency 4500 Hz.
Claims (4)
1. The accurate signal frequency estimation method is characterized by comprising the following steps:
step 1: digitally sampling the analyzed single-frequency sinusoidal signal with a sampling rate of Fs; after sampling, a continuous digital signal sequence is formed, denoted as X: x= { X i -i=0, 1,2 … … N-1); n is a positive integer power of 2; setting the sampling rate as Fs;
step 2: calculating Df, df=fs/N;
step 3: performing PSD power spectrum analysis on X to obtain power spectrum SPF of X, searching the maximum value in the left half value of the SPF, marking as (n, C), wherein C is the maximum value, and n is the serial number of the maximum value; taking about n and 2 SPF elements respectively, and sequentially marking the elements as (n-2, A), (n-1, B), (n+1, D) and (n+2, E);
step 4: and (3) carrying the data into a formula (1) for calculation, and obtaining the frequency F of the measured signal.
2. The method of claim 1, wherein in step 1, the signal sequence is formed according to the number of sample points required by DFT.
3. A method for accurate signal frequency estimation according to claim 2, wherein said requirements are: the number of samples is noted as N, which is a positive integer power of 2.
4. The method of claim 1, wherein in the step 3, the result of the power spectrum analysis is recorded as SPF:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011380638.4A CN112541157B (en) | 2020-11-30 | 2020-11-30 | Signal frequency accurate estimation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011380638.4A CN112541157B (en) | 2020-11-30 | 2020-11-30 | Signal frequency accurate estimation method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112541157A CN112541157A (en) | 2021-03-23 |
CN112541157B true CN112541157B (en) | 2024-03-22 |
Family
ID=75016732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011380638.4A Active CN112541157B (en) | 2020-11-30 | 2020-11-30 | Signal frequency accurate estimation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112541157B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114838809A (en) * | 2022-03-22 | 2022-08-02 | 珠海市运泰利自动化设备有限公司 | Audio signal measuring method for self-adaptively improving frequency measurement precision |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4904930A (en) * | 1988-09-16 | 1990-02-27 | Rockwell International Corporation | Method of carrier frequency estimation |
US8666689B1 (en) * | 2008-12-30 | 2014-03-04 | Cadence Design Systems, Inc. | Phase noise analysis of oscillator circuit designs |
CN106443178A (en) * | 2016-09-08 | 2017-02-22 | 东南大学 | IQuinn-Rife integration based sinusoidal signal frequency estimation method |
CN106533394A (en) * | 2016-11-11 | 2017-03-22 | 江西师范大学 | High-precision frequency estimation method based on amplitude-frequency response of adaptive filter |
CN106546949A (en) * | 2016-10-28 | 2017-03-29 | 东南大学 | A kind of double array element sinusoidal signal arrival bearing's methods of estimation based on frequency estimation meter |
CN107064629A (en) * | 2017-06-07 | 2017-08-18 | 东南大学 | It is a kind of that simple signal frequency estimating methods are integrated based on the segmentation that frequency relative bias is estimated |
CN110007148A (en) * | 2019-03-28 | 2019-07-12 | 东南大学 | A kind of simple signal frequency estimating methods based on the comprehensive interpolation of discrete spectrum phase and amplitude |
CN110068727A (en) * | 2019-04-09 | 2019-07-30 | 东南大学 | A kind of simple signal frequency estimating methods based on the comprehensive interpolation of Candan-Rife |
CN110333389A (en) * | 2019-05-07 | 2019-10-15 | 东南大学 | Sinusoidal signal frequency estimation method based on interpolated DFT |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016034915A1 (en) * | 2014-09-05 | 2016-03-10 | Intel IP Corporation | Audio processing circuit and method for reducing noise in an audio signal |
-
2020
- 2020-11-30 CN CN202011380638.4A patent/CN112541157B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4904930A (en) * | 1988-09-16 | 1990-02-27 | Rockwell International Corporation | Method of carrier frequency estimation |
US8666689B1 (en) * | 2008-12-30 | 2014-03-04 | Cadence Design Systems, Inc. | Phase noise analysis of oscillator circuit designs |
CN106443178A (en) * | 2016-09-08 | 2017-02-22 | 东南大学 | IQuinn-Rife integration based sinusoidal signal frequency estimation method |
CN106546949A (en) * | 2016-10-28 | 2017-03-29 | 东南大学 | A kind of double array element sinusoidal signal arrival bearing's methods of estimation based on frequency estimation meter |
CN106533394A (en) * | 2016-11-11 | 2017-03-22 | 江西师范大学 | High-precision frequency estimation method based on amplitude-frequency response of adaptive filter |
CN107064629A (en) * | 2017-06-07 | 2017-08-18 | 东南大学 | It is a kind of that simple signal frequency estimating methods are integrated based on the segmentation that frequency relative bias is estimated |
CN110007148A (en) * | 2019-03-28 | 2019-07-12 | 东南大学 | A kind of simple signal frequency estimating methods based on the comprehensive interpolation of discrete spectrum phase and amplitude |
CN110068727A (en) * | 2019-04-09 | 2019-07-30 | 东南大学 | A kind of simple signal frequency estimating methods based on the comprehensive interpolation of Candan-Rife |
CN110333389A (en) * | 2019-05-07 | 2019-10-15 | 东南大学 | Sinusoidal signal frequency estimation method based on interpolated DFT |
Non-Patent Citations (1)
Title |
---|
基于FFT的高精度FMCW雷达频率估计算法;侯盼卫;杨录;岳文豹;;山西电子技术(05);58-59 * |
Also Published As
Publication number | Publication date |
---|---|
CN112541157A (en) | 2021-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Belega et al. | Accuracy of sine wave frequency estimation by multipoint interpolated DFT approach | |
CN101701984B (en) | Fundamental wave and harmonic wave detecting method based on three-coefficient Nuttall windowed interpolation FFT | |
CN110068727B (en) | Single-frequency signal frequency estimation method based on Candan-Rife comprehensive interpolation | |
Minda et al. | A review of interpolation methods used for frequency estimation | |
CN103018555B (en) | High-precision electric power parameter software synchronous sampling method | |
CN105307095A (en) | Method for high-resolution audio frequency measurement based on FFT (Fast Fourier Transform) | |
US4686457A (en) | Method for measuring a signal's frequency components | |
CN112541157B (en) | Signal frequency accurate estimation method | |
CN109407501B (en) | Time interval measuring method based on relevant signal processing | |
CN104880172A (en) | Road surface flatness measuring method and device based on Kalman filtering | |
CN109541306A (en) | TLS-ESPRIT-based inter-harmonic detection method | |
CN114280679A (en) | Ground nuclear magnetic resonance signal parameter extraction method and system | |
Belega et al. | Amplitude estimation by a multipoint interpolated DFT approach | |
CN112883318A (en) | Multi-frequency attenuation signal parameter estimation algorithm of subtraction strategy | |
CN112541156B (en) | Signal amplitude accurate estimation method | |
CN104991119A (en) | Co-prime spectrum analysis method and apparatus for eliminating pseudo peak and spectrum leakage effects | |
CN109633243B (en) | Beam signal peak amplitude accurate extraction method based on multiphase sampling | |
RU2363005C1 (en) | Method of spectral analysis of polyharmonic signals and device to this end | |
Belega et al. | Estimation of the multifrequency signal parameters by interpolated DFT method with maximum sidelobe decay | |
Attivissimo et al. | A study on nonlinear averagings to perform the characterization of power spectral density estimation algorithms | |
Belega et al. | Multipoint interpolated DFT method for frequency estimation | |
CN110133738B (en) | IpDFT-based frequency estimation method for free induction attenuation signal of proton magnetometer | |
CN106323458A (en) | Method for measuring vibration fundamental frequency of object | |
Yue et al. | Modified algorithm of sinusoid signal frequency estimation based on Quinn and Aboutanios iterative algorithms | |
CN109948111A (en) | A kind of EMI receiver wave detector model based on discrete mathematics |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |