Gemstone Numeric Library
Show/Hide TOC

# CurveFitCompute(Int32, IEnumerablePoint) Method

Computes linear regression over given values.

## Definition

Namespace: Gemstone.Numeric.Analysis
Assembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.143 -- Release Build+7b47d813842cdbcdc1945a56970c7676cbda1a3a
C#
View Source Request Example

    public static double[] Compute(
    	int polynomialOrder,
    	IEnumerable<Point> values
    )

VB
View Source Request Example

    Public Shared Function Compute (
    	polynomialOrder As Integer,
    	values As IEnumerable(Of Point)
    ) As Double()

C++
View Source Request Example

    public:
    static array<double>^ Compute(
    	int polynomialOrder,
    	IEnumerable<Point^>^ values
    )

JavaScript
View Source Request Example

    Gemstone.Numeric.Analysis.CurveFit.Compute = function(polynomialOrder, values);

#### Parameters

polynomialOrder Int32
  An Int32 for the polynomial order.
values IEnumerable Point
  A list of values.

#### Return Value

Double
An array of Double values.

## See Also

#### Reference

CurveFit Class
Compute Overload
Gemstone.Numeric.Analysis Namespace