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.175 -- Release Build+b8bec8d0c1919b6e6504d9b47fa65ea968640577
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