Owning Palette: Advanced Curve Fitting VIs
Requires: Full Development System
Calculates statistical intervals of the best Gaussian fit for a data set (X, Y). You must manually select the polymorphic instance to use.
Use the pull-down menu to select an instance of this VI.
Add to the block diagram | Find on the palette |
confidence level specifies the level of certainty for the confidence interval. The default is 0.95, which means the probability that the best fit falls between Lower Bound and Upper Bound is 95%. confidence level must be greater than 0 and less than 1. | |
Y is the array of dependent values. Y must contain at least four points. | |
X is the array of independent values. X must be the same size as Y. | |
Weight is the array of weights for the observations (X, Y). Weight must be the same size as Y. Weight also must contain non-zero elements. If an element in Weight is less than 0, the VI uses the absolute value of the element. If you do not wire an input to Weight, the VI sets all elements of Weight to 1. |
|
amplitude specifies the amplitude of the fitted model. | |
center specifies the center of the fitted model. | |
standard deviation is the standard deviation of the fitted model. | |
Upper Bound returns the upper bound of the confidence interval. | |
Lower Bound returns the lower bound of the confidence interval. | |
delta amplitude returns the confidence radius of amplitude. | |
delta center returns the confidence radius of center. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. | |
delta standard deviation returns the confidence radius of standard deviation. |
confidence level specifies the level of certainty for the prediction interval. The default is 0.95, which means the probability that a new dependent value falls between Lower Bound and Upper Bound is 95%. confidence level must be greater than 0 and less than 1. | |
Y is the array of dependent values. Y must contain at least four points. | |
X is the array of independent values. X must be the same size as Y. | |
Weight is the array of weights for the observations (X, Y). Weight must be the same size as Y. Weight also must contain non-zero elements. If an element in Weight is less than 0, the VI uses the absolute value of the element. If you do not wire an input to Weight, the VI sets all elements of Weight to 1. |
|
amplitude specifies the amplitude of the fitted model. | |
center specifies the center of the fitted model. | |
standard deviation is the standard deviation of the fitted model. | |
Upper Bound returns the upper bound of the prediction interval. | |
Lower Bound returns the lower bound of the prediction interval. | |
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
In the following illustration, the region between the upper and lower confidence bounds is the confidence interval.
In the following illustration, the region between the upper and lower prediction bounds is the prediction interval.
If the noise of Y is Gaussian distributed, use both instances of the polymorphic VI to calculate the confidence interval and prediction interval. The following block diagram illustrates the calculation of the confidence interval and the prediction interval using the Gaussian Peak Fit Intervals VI. You must fit the observations with the Gaussian Peak Fit VI using the Least Square method to obtain the amplitude, center, and standard deviation.