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.156 -- Release Build+82008765a27c9679d42964f049db865fa540531c
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