Download LabVIEW Function and VI Reference Manual

Transcript
Chapter 44
Analysis Curve-Fitting VIs
Linear Fit
Finds the line values and the set of linear coefficients slope and intercept, which describe
the line that best represents the input data set.
The general form of the linear fit is given by
F = mX + b,
where F represents the output sequence Best Linear Fit, X represents the input sequence
X Values, m is the slope, and b is the intercept.
The VI obtains mse using the formula
n–1
1
mse = --n
∑ (f – y )
i
i
2
,
i=0
where F represents the output sequence Best Linear Fit, y represents the input sequence
Y Values, and n is the number of data points.
Linear Fit Coefficients
Finds the set of linear coefficients slope and intercept, which describe the line that best
represents the input data set.
This VI is a subVI of the Linear Fit VI.
The general form of the linear fit is given by
F = mX + b,
where F is the sequence representing the best fitted values. X represents the input
sequence X Values, m is the slope, and b is the intercept.
LabVIEW Function and VI Reference Manual
44-12
© National Instruments Corporation