Finds the exponential curve values and the set of exponential coefficients amplitude and damping, which describe the exponential curve that best represents the input data set. Details
![]() |
initialize, when TRUE, initializes the internal state of the VI. |
![]() |
input data y is a set of input data that sample length defines. input data y must contain at least two points, as defined by sample length. |
![]() |
input data x is a set of input data that sample length defines. input data xmust contain at least two points, as defined by sample length. |
![]() |
sample length is the length of each set of incoming data. The VI performs computation for each set of data. The default is 100. When you set sample length to zero, the VI calculates a cumulative solution for the input data from the time that you called or initialized the VI. When the sample length setting is greater than zero, the VI calculates the solution for only the newest set of input data. |
![]() |
Best Exponential Fit is the calculated values of the best exponential fit. |
![]() |
amplitude is the exponential curve amplitude value that best describes the curve. |
![]() |
damping is the exponential curve damping value that best describes the curve. |
![]() |
mse is the mean squared error. |
![]() |
error returns any error or warning condition from the VI. Refer to Point By Point Error Codes for more information about these conditions. |
The general form of the exponential fit is given by
F = a*exp(d*X),
where
F is the set of output data Best Exponential Fit.
X is input data x.
a is amplitude.
d is damping.
The mean square error (MSE) between the Best Exponential Fit and the set of input data yi is determined using the MSE PtByPt VI and returned in the output mse. mse = 1/n* sum[f(i)-y(i)]^2. Here n is the number of elements in the set of input data.
![]() | Note The Exponential Fit PtByPt VI performs an exponential fit even when the set of input data y values is negative. The Exponential Fit PtByPt VI performs the fit under the assumption that the amplitude coefficient is also negative and returns a negative amplitude. input data y cannot contain both positive and negative elements. |