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.154 -- Release Build+9c55d1e3f6f7e7a168a3c7771afde278e919c61c
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