A single-end fixed adjustable stiffness fitting algorithm
By using a single-ended fixed-adjustable stiffness fitting algorithm in the vibration test, combined with trend prediction and regional weighting, the problems of peak data fixation and noise elimination are solved, and effective fitting and denoising of data are achieved, with adjustable stiffness. Adapt to different needs.
Patent Information
- Application Number
- CN202111242490.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-25
AI Technical Summary
In vibration tests, existing interpolation and fitting algorithms are difficult to fix the data points at peaks and eliminate noise at the same time, especially for local trends outside the peaks, making it difficult to meet the overall trend requirements of the data.
A single-ended fixed-adjustable stiffness fitting algorithm is used to perform weighted synthesis through two methods: trend prediction and regional weighting. Normal distribution is used to control weights to ensure the overall trend summary characteristics of the curve, and the stiffness of the fitting algorithm is adjusted by controlling parameters.
It achieves denoising and fitting of other parts while retaining important data at the peak, which meets the needs of fixing the peak and eliminating noise, and the stiffness is adjustable to adapt to different application needs.
Smart Images

Figure CN114117313B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of fitting algorithms, and relates to a fitting algorithm that can be used for amplitude-frequency characteristics, and in particular to a single-end fixed adjustable stiffness fitting algorithm. Background Art
[0002] Interpolation and fitting are two commonly used algorithms.
[0003] The interpolation algorithm is to interpolate a continuous function based on discrete data so that the curve of this continuous function passes through all given discrete data points.
[0004] The fitting algorithm is to find the function curve with the smallest overall distance to the known discrete data, and the curve does not need to cross the given discrete data. The core mathematical idea is the least squares method, based on which there are various improved algorithms.
[0005] The two methods have their own characteristics and usage scenarios. Figure 1 The data shown here creates special fitting requirements when doing data analysis and processing.
[0006] Fitting requirement 1: The data point at the peak is an important vibration amplitude-frequency characteristic and should be fixed and cannot be changed.
[0007] Fitting requirement 2: The fitting outside the peak should eliminate noise and reflect the overall trend.
[0008] The two requirements are a combination of interpolation and fitting. Neither a single interpolation algorithm nor a single fitting algorithm is applicable. Requirement 2 is that the local trend outside the peak should be insensitive, requiring the fitting curve to have sufficient "rigidity". Summary of the invention
[0009] In order to solve the above problems, the present invention provides a single-end fixed adjustable stiffness fitting algorithm, which retains the data points at the peak and performs fitting and noise elimination on other data.
[0010] The technical solution of the present invention is:
[0011] A single-end fixed adjustable stiffness fitting algorithm takes the peak data and the data on both sides of the peak data, and fits the data at both ends respectively with the peak data as the center. The fitting method for the data at both ends is the same; the fitting method is weighted synthesis using trend prediction and regional weighting.
[0012] Furthermore, trend prediction is from the peak to the two ends, using the changing trends of the previous two points to predict the possible position of the next point.
[0013] Furthermore, the regional weighting specifically adopts normal distribution to control the weights and obtains the overall trend summary characteristics with adjustable curve stiffness.
[0014] Furthermore, n is the fitting data of the nth point, y n =P4et n +P5er n ,
[0015] Among them, p4 and p5 are control parameters, which are constants and their values are adjusted according to the stiffness adjustment requirements; et n is the trend forecast of the nth point, er n is the area weight of the nth point.
[0016] Further, p4+p5=1, and p4 is between 0.05 and 0.2.
[0017] Furthermore, the trend forecast of the nth point et n The calculation method is: n =x n +y n-1 -y n-2 ;
[0018] Among them, x n is the original data of the nth point, y1=x1, y2=x2, x1 is the original data at the peak, and x2 is the original data of the point adjacent to the peak.
[0019] Furthermore, regional weighting n The algorithm is:
[0020]
[0021] Where N is the number of data,
[0022]
[0023]
[0024] Furthermore, σ2=(n-2) 0.5(1+ef)+Pa
[0025] Among them, p3 is the control parameter, which is a constant and its value is adjusted according to the stiffness adjustment requirements.
[0026] Furthermore, μe = p1,σ e =p2;
[0027] Among them, p1 and p2 are control parameters, which are constants and their values are adjusted according to the stiffness adjustment requirements.
[0028] Furthermore, both p1 and p2 are greater than 1.
[0029] The beneficial effects of the present invention are:
[0030] 1. The present invention proposes a new fitting algorithm that can meet the two requirements of retaining important data at the peak and fitting and denoising other parts of the data;
[0031] 2. The stiffness of the algorithm of the present invention is adjustable. The technicians can adjust the five control parameters from p1 to p5 according to specific needs, thereby adjusting the stiffness of the fitting algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a composition diagram of the test device of the present invention;
[0033] Figure 2 It is a diagram of the test configuration and internal cross-linking of the test device of the present invention. DETAILED DESCRIPTION
[0034] This section is an embodiment of the present invention, which is used to explain and illustrate the technical solution of the present invention.
[0035] The idea of the present invention is: like stroking a bush that grows crookedly, start from the root and follow its overall growth trend. After turning it upside down, the data point at the peak is the root of the bush, and the position of the root is fixed and immovable. The algorithm is named the bush fitting algorithm.
[0036] The shrub fitting algorithm uses trend prediction and regional weighting, which are weighted synthesis.
[0037] Trend prediction is from the root to the branch, using the change trend of the first two points to predict the possible position of the next point. Trend prediction reflects the need for root fixation and overall smooth attenuation.
[0038] Regional weighting avoids local fluctuations caused by noise, and uses normal distribution to control weights to obtain the overall trend summary characteristics with adjustable curve stiffness.
[0039] The fitting effect of the shrub fitting algorithm is as follows Figure 2 As shown in the figure, the fitting effect fully meets the two conflicting fitting requirements. The bush fitting algorithm combines the functions of the interpolation algorithm and the fitting algorithm. The fitting curve passes through a point at one end, and the rest reflects the overall trend. It is a special algorithm for special needs.
[0040] The data points at the peak are regarded as the roots of the bushes, and are processed separately on the left and right sides. The data at the peak is numbered 1, and the numbers increase and are calculated on both sides. x is the data before fitting, and y is the data after fitting. The specific algorithm is as follows.
[0041] y1=x1;
[0042] y2=x2;
[0043] et n =xn +y n-1 -y n-2 ;
[0044] et is a trend forecast.
[0045] μ e =P1;
[0046] σ0=P2;
[0047] N is the number of data.
[0048] σ2=(n-2) 0.5(1+ef)+Pa ;
[0049]
[0050]
[0051]
[0052] er is the area weighting.
[0053] y n =P4et n +P5ern 。
[0054] P1~P5 are control parameters. Appropriate adjustment of their values can adapt to certain new application requirements.
[0055] P1 and P2 control the impact of data near the peak on the overall trend at different data volumes, and should both be greater than 0. It is recommended that P1 be 35 and P2 be 1.
[0056] P3 controls the stiffness of the overall fit, that is, the degree of response to local data trends. The recommended value range is (0, 1].
[0057] P4 and P5 control the weights of trend prediction and regional weighting, both should be greater than 0 and satisfy P4+P5=1. It is recommended that P4 be 0.1.
Claims
1. A single-end fixed adjustable stiffness fitting algorithm, characterized in that: Fit the vibration test data: take the data at the peak and the data on both sides of the peak, and fit the data at both ends respectively with the data at the peak as the center. The fitting method for the data at both ends is the same; the fitting method is to use trend prediction and regional weighting for weighted synthesis; Trend prediction is to use the changing trend of the previous two points from the peak to the two ends to predict the possible position of the next point; Specifically, regional weighting adopts normal distribution to control weights and obtains the overall trend summary characteristics with adjustable curve stiffness; y n is the fitting data of the nth point, y n =P4et n +P5er n , Among them, p4 and p5 are control parameters, which are constants and their values are adjusted according to the stiffness adjustment requirements; et n is the trend forecast of the nth point, er n is the area weight of the nth point; Trend forecast at point n et n The calculation method is: n =x n +y n-1 -y n-2 ; Among them, x n is the original data of the nth point, y1=x1, y2=x2, x1 is the original data at the peak, and x2 is the original data of the point adjacent to the peak; Area Weighted n The algorithm is: Where N is the number of data, σ2=(n-2) 0.5(1+ef)+p3 ; Among them, p3 is the control parameter, which is a constant and its value is regulated according to the stiffness adjustment demand; The calculation method of ef is: Among them, μ e =p1,σ e =p2; p1 and p2 are control parameters, which are constants and their values are adjusted according to the stiffness adjustment requirements.
2. A single-end fixed adjustable stiffness fitting algorithm according to claim 1, characterized in that: p4+p5=1, p4 is between 0.05 and 0.
2.
3. The single-end fixed adjustable stiffness fitting algorithm according to claim 1, characterized in that: Both p1 and p2 are greater than 1.
Citation Information
Patent Citations
Quality state evaluation method of long-term storage complex equipment
CN107656906A
Nuclear power real-time data trend fitting algorithm
CN113191003A
