beautypg.com

Curvefitvalue, Polynomial – MTS Multipurpose Elite User Manual

Page 218

background image

Parameters

ForceArray - The force array data.

ComplianceCoefficients - The coefficient array generated during the compliance Test Run.

Unit Class

Extension

Example

ExtensionArray - Compliance(ForceArray, ComplianceCoefficients)

CurveFitValue

Returns

The requested coefficient.

Syntax

CurveFitValue(Order, Coefficient, yArray, aArray, StartIndex, EndIndex)

Parameters

Order – The order of the polynomial fit to calculate using the yArray and xArray data.

Coefficient – The coefficient to return.

yArray – The Y array data.

xArray – The X array data.

StartIndex – The optional start index of the arrays.

EndIndex – The optional end index of the arrays.

Unit Class

Dependent upon equation order, coefficient number, and channels specified.

Example

CurveFitValue(2, 0, yArray, aArray, StartIndex, EndIndex)

This example returns the zero coefficient from the second order polynomial fit on the X and Y arrays
between the indexes specified by StartIndex and EndIndex.

Polynomial

The Polynomial function returns the Y value based on an X value and the coefficients generated with the
PolynomialFit function.

Returns

The Y value associated with the X value.

218 | MTS TestSuite

Working with Variables