Isinvalidnumber, Isvalidnumber, Leastsquaresfit – MTS Multipurpose Elite User Manual
Page 253

IsInvalidNumber
Syntax
IsInvalidNumber(number)
Checks the validity of the supplied value.
Returns
This function returns 1 if the value being tested is invalid; otherwise, 0 (zero) is returned.
Example
IsInvalidNumber(PeakLoad)
Where PeakLoad is a non-array variable.
IsValidNumber
Returns “1” if the number is valid. Otherwise, it returns “0”.
Syntax
IsValidNumber(number)
Example
IsValidNumber(PeakLoad)
Where PeakLoad is a non-array variable.
LeastSquaresFit
The slope of the least squares fit of the array that contains Y-axis data and X-axis data between the start
and end indexes.
Returns
The slope of the least squares fit line calculated over the specified region.
Syntax
LeastSquaresFit(yVariable, xVariable, startIndex, endIndex)
Parameters
yVariable – The Y-Axis data.
xVariable – The X-Axis data.
StartIndex – The starting index of the region.
EndIndex – The ending index of the region.
MTS TestSuite | 253
Working with Variables