cisst-saw
Loading...
Searching...
No Matches
nmrMultiVariablePowerBasis::BarycentricBasis Class Reference

#include <nmrMultiVariablePowerBasis.h>

Inheritance diagram for nmrMultiVariablePowerBasis::BarycentricBasis:
nmrMultiVariablePowerBasis

Public Types

typedef nmrMultiVariablePowerBasis BaseType
Public Types inherited from nmrMultiVariablePowerBasis
typedef double VariableType
typedef nmrPolynomialTermPowerIndex::PowerType PowerType
typedef nmrPolynomialTermPowerIndex::VariableIndexType VariableIndexType
typedef VariableType ValueType

Public Member Functions

 BarycentricBasis (VariableIndexType numVariables, PowerType maxPower, VariableIndexType implicitVarIndex=-1)
VariableType GetImplicitVariable () const
VariableIndexType GetImplicitVarIndex () const
void SetImplicitVarIndex (VariableIndexType newIndex)
virtual bool CanSetVariable (VariableIndexType varIndex) const
virtual void SetVariable (VariableIndexType varIndex, VariableType value)
virtual void SetVariables (VariableType const vars[])
Public Member Functions inherited from nmrMultiVariablePowerBasis
 nmrMultiVariablePowerBasis (VariableIndexType numVariables, PowerType maxPower)
virtual ~nmrMultiVariablePowerBasis ()
void Initialize (VariableIndexType numVariables, PowerType maxPower)
VariableIndexType GetNumVariables () const
PowerType GetMaxDegree () const
VariableType GetVariable (VariableIndexType variableIndex) const
void GetVariables (VariableType vars[]) const
VariableType GetSumOfVariables () const
VariableType GetVariablePower (VariableIndexType var, PowerType power) const
ValueType EvaluatePowerProduct (const PowerType powers[]) const

Protected Attributes

VariableIndexType ImplicitVarIndex
Protected Attributes inherited from nmrMultiVariablePowerBasis
BasisContainerType BasisContainer

Additional Inherited Members

Protected Types inherited from nmrMultiVariablePowerBasis
typedef vctDynamicMatrix< VariableTypeBasisContainerType
Protected Member Functions inherited from nmrMultiVariablePowerBasis
void PrivateSetVariable (VariableIndexType varIndex, VariableType value)

Member Typedef Documentation

◆ BaseType

Constructor & Destructor Documentation

◆ BarycentricBasis()

nmrMultiVariablePowerBasis::BarycentricBasis::BarycentricBasis ( VariableIndexType numVariables,
PowerType maxPower,
VariableIndexType implicitVarIndex = -1 )

Member Function Documentation

◆ CanSetVariable()

virtual bool nmrMultiVariablePowerBasis::BarycentricBasis::CanSetVariable ( VariableIndexType varIndex) const
inlinevirtual

Returns true if the value of variable indicated by the index can be set using SetVariable().

Implements nmrMultiVariablePowerBasis.

◆ GetImplicitVariable()

VariableType nmrMultiVariablePowerBasis::BarycentricBasis::GetImplicitVariable ( ) const
inline

return the value of the implicit variable.

◆ GetImplicitVarIndex()

VariableIndexType nmrMultiVariablePowerBasis::BarycentricBasis::GetImplicitVarIndex ( ) const
inline

return the index of the implicit variable

◆ SetImplicitVarIndex()

void nmrMultiVariablePowerBasis::BarycentricBasis::SetImplicitVarIndex ( VariableIndexType newIndex)
inline

choose which of the variables is the implicit one.

◆ SetVariable()

virtual void nmrMultiVariablePowerBasis::BarycentricBasis::SetVariable ( VariableIndexType varIndex,
VariableType value )
virtual

Set the value of one variable

Implements nmrMultiVariablePowerBasis.

◆ SetVariables()

virtual void nmrMultiVariablePowerBasis::BarycentricBasis::SetVariables ( VariableType const vars[])
virtual

Set the values of the polynomial variables to a specific n-dimensional point. This enables to pre-calculate the power basis for future evaluations. Implemented for each concrete polynomial class

Implements nmrMultiVariablePowerBasis.

Member Data Documentation

◆ ImplicitVarIndex

VariableIndexType nmrMultiVariablePowerBasis::BarycentricBasis::ImplicitVarIndex
protected

The documentation for this class was generated from the following file: