LinearCombination Constructor

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

LinearCombination(FunctionBasis)

Constructs a new LinearCombination object.
C#
public LinearCombination(
	FunctionBasis basis
)

Parameters

basis  FunctionBasis
The FunctionBasis whose member functions this LinearCombination is a linear combination of.

Exceptions

ArgumentNullException

basis is null.

LinearCombination(FunctionBasis, Vector<Double>)

Constructs a new LinearCombination object.
C#
public LinearCombination(
	FunctionBasis basis,
	Vector<double> coefficients
)

Parameters

basis  FunctionBasis
The FunctionBasis whose member functions this LinearCombination is a linear combination of.
coefficients  Vector<Double>
A Double array that contains the coefficients to the functions in basis.

Exceptions

ArgumentNullException

basis is null.

-or-

coefficients is null.

DimensionMismatchException

The length of coefficients is not equal to the size of basis .

LinearCombination(FunctionBasis, Double[])

Constructs a new LinearCombination object.
C#
public LinearCombination(
	FunctionBasis basis,
	double[] coefficients
)

Parameters

basis  FunctionBasis
The FunctionBasis whose member functions this LinearCombination is a linear combination of.
coefficients  Double[]
A Double array that contains the coefficients to the functions in basis.

Exceptions

ArgumentNullException

basis is null.

-or-

coefficients is null.

DimensionMismatchException

The length of coefficients is not equal to the size of basis .

See Also