Class LeastSquaresSolver
Namespace: Unity.UIWidgets.gestures
Syntax
public class LeastSquaresSolver
Constructors
LeastSquaresSolver(List<Single>, List<Single>, List<Single>)
Declaration
public LeastSquaresSolver(List<float> x, List<float> y, List<float> w)
Parameters
| Type | Name | Description |
|---|---|---|
| List<Single> | x | |
| List<Single> | y | |
| List<Single> | w |
Fields
w
Declaration
public readonly List<float> w
Field Value
| Type | Description |
|---|---|
| List<Single> |
x
Declaration
public readonly List<float> x
Field Value
| Type | Description |
|---|---|
| List<Single> |
y
Declaration
public readonly List<float> y
Field Value
| Type | Description |
|---|---|
| List<Single> |
Methods
solve(Int32)
Declaration
public PolynomialFit solve(int degree)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | degree |
Returns
| Type | Description |
|---|---|
| PolynomialFit |