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.141 -- Release Build+e5ae2e0249fc474e157002adefe3c67e31d30852
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