| PolynomialLeastSquares(Int32, DoubleVector, DoubleVector, Boolean) Constructor |
Constructs a PolynomialLeastSquares instances that fits the given data.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public PolynomialLeastSquares(
int degree,
DoubleVector x,
DoubleVector y,
bool forceThroughOrigin
)
Public Sub New (
degree As Integer,
x As DoubleVector,
y As DoubleVector,
forceThroughOrigin As Boolean
)
public:
PolynomialLeastSquares(
int degree,
DoubleVector^ x,
DoubleVector^ y,
bool forceThroughOrigin
)
new :
degree : int *
x : DoubleVector *
y : DoubleVector *
forceThroughOrigin : bool -> PolynomialLeastSquares
Parameters
- degree Int32
- The degree of the desired fitted polynomial.
- x DoubleVector
- The x data.
- y DoubleVector
- The y data.
- forceThroughOrigin Boolean
- If true the fitted polynomial will
force to have a zero constant term.
Exceptions See Also