Sage Modeling and Simulation Library

LinearRegression..::..Regress Method (array<Double>[]()[][], array<Double>[]()[][], Int32)

Performs a linear regression on the data in Y (independent), X (dependent.) All data points are given equal weighting.

Namespace:  Highpoint.Sage.Mathematics
Assembly:  Sage4 (in Sage4.dll)

Syntax


public bool Regress(
	double[] y,
	double[] x,
	int order
)

Parameters

y
Type: array<Double>[]()[][]
The dependent values in the data series.
x
Type: array<Double>[]()[][]
The independent values in the data series.
order
Type: Int32
The order of solution desired (1=average, 2=line, 3=parabola, etc.)

Return Value

True if the regression was successful.