nlfXfromY

 

Description

Get the value(s) of the independent variable for the specified value of the specified dependent variable.

Syntax

int nlfXfromY( double dy, double * parX, int nMaxX, int nDependent = 0 )

Parameters

dy
[input] value of the dependent variable
parX
[output] array for the x values
nMaxX
[output] Size of array pointed to by parX
nDependent
[input] dependent variable (0 based offset)

Return

Returns 1 if successful and returns the value(s) of the independent variable for the given value of the dependent variable.

Examples

EX1

 // SAMPLE NOT REVISED (We need alternative for NLFit)

Remark

Get the value(s) of the independent variable for the specified value of the specified dependent variable. This function is used in conjunction with the internal Origin Non-linear Least Squares Fitter (NLSF) object and uses the most recent fitting function and parameter values specified through the NLSF interface or through script.

See Also

Header to Include

origin.h

Reference