cisst-saw
Loading...
Searching...
No Matches
nmrSingleVariablePowerBasis Class Reference

#include <nmrSingleVariablePowerBasis.h>

Public Types

typedef double VariableType
typedef nmrPolynomialTermPowerIndex::PowerType PowerType

Public Member Functions

 nmrSingleVariablePowerBasis (PowerType degree)
void Initialize (PowerType degree)
PowerType GetDegree () const
VariableType GetVariable () const
VariableType GetVariablePower (PowerType power) const
VariableType operator[] (PowerType power) const
void SetVariable (VariableType variable)

Detailed Description

Stores the power basis for a single variable. A nmrSingleVariablePowerBasis is initialized with the maximal degree for which the variable is raised. Call SetVariable() to set the variable and calculate the sequence of powers.

Member Typedef Documentation

◆ PowerType

◆ VariableType

Constructor & Destructor Documentation

◆ nmrSingleVariablePowerBasis()

nmrSingleVariablePowerBasis::nmrSingleVariablePowerBasis ( PowerType degree)
inline

Member Function Documentation

◆ GetDegree()

PowerType nmrSingleVariablePowerBasis::GetDegree ( ) const
inline

Return the maximal degree of the variable in this power sequence

◆ GetVariable()

VariableType nmrSingleVariablePowerBasis::GetVariable ( ) const
inline

Return the current value of the variable.

◆ GetVariablePower()

VariableType nmrSingleVariablePowerBasis::GetVariablePower ( PowerType power) const
inline

Return a pre-computed power of the variable (assert limits)

◆ Initialize()

void nmrSingleVariablePowerBasis::Initialize ( PowerType degree)
inline

This function initializes the variable to zero and the degree to the given value. It is to be called during events such as serialization.

◆ operator[]()

VariableType nmrSingleVariablePowerBasis::operator[] ( PowerType power) const
inline

Return a pre-computed power of the variable

◆ SetVariable()

void nmrSingleVariablePowerBasis::SetVariable ( VariableType variable)

Set the value of the variable and the rest of the power sequence


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