LinearCombination<T> Class

Represents a curve that is a linear combination of the functions in a FunctionBasis<T>.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
C#
[SerializableAttribute]
public class LinearCombination<T> : Curve<T>
where T : Object, INumberBase<T>
Inheritance
Object  →  Curve<T>  →  LinearCombination<T>
Derived

Type Parameters

T

Remarks

Use the LinearCombination<T> class to represent functions that are a linear combination of a set of basis functions in a FunctionBasis<T>.

Constructors

LinearCombination<T>(FunctionBasis<T>) Constructs a new LinearCombination<T> object.
LinearCombination<T>(FunctionBasis<T>, T[]) Constructs a new LinearCombination<T> object.
LinearCombination<T>(FunctionBasis<T>, Vector<T>) Constructs a new LinearCombination<T> object.

Properties

Basis Gets the FunctionBasis<T> associated with the linear combination.
Coefficient Gets or sets the coefficient of the function with the specified index.
Parameters Gets the collection of parameters that determine the shape of this Curve.
(Inherited from Curve<T>)

Methods

Add(LinearCombination<T>) Adds another LinearCombination<T> to this instance.
Add(T, LinearCombination<T>) Adds a multiple of another LinearCombination<T> to this instance.
Add(LinearCombination<T>, LinearCombination<T>) Adds two linear combinations.
Clone Constructs an exact copy of this instance.
(Inherited from Curve<T>)
Divide Divides a linear combination by a real number.
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
FindRoots Gets the set of X-coordinates where the curve crosses the X-axis.
(Inherited from Curve<T>)
GetCurveFitter Returns a CurveFitter object that can be used to fit the curve to data.
(Overrides Curve<T>.GetCurveFitter())
GetDerivative Returns a Curve that represents the derivative of this Curve.
(Inherited from Curve<T>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Integral Gets the definite integral of the curve between the specified X-coordinates.
(Inherited from Curve<T>)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Multiply Multiplies a linear combination by a real number.
Negate Returns the negation of a linear combination.
OnParameterChanged Called after a Curve parameter has been changed.
(Inherited from Curve<T>)
OnParameterChanging Called before the value of a curve parameter is changed.
(Inherited from Curve<T>)
SetParameter Sets a curve parameter to the specified value.
(Inherited from Curve<T>)
SlopeAt Gets the slope of the curve at the specified X-coordinate.
(Overrides Curve<T>.SlopeAt(T))
Solve Finds the x value where the curve reaches the specified y value.
(Inherited from Curve<T>)
Subtract(LinearCombination<T>) Subtracts another LinearCombination<T> from this instance.
Subtract(LinearCombination<T>, LinearCombination<T>) Subtracts two linear combinations.
TangentAt Gets the tangent line to the curve at the specified X-coordinate.
(Inherited from Curve<T>)
ToStringReturns a string that represents the current object.
(Inherited from Object)
ValueAt Gets the Y-value of the curve at the specified X-coordinate.
(Overrides Curve<T>.ValueAt(T))

See Also