OpenSim  OpenSim 3.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
OpenSim::FunctionScaler Class Reference

This is a SimTK::Function that multiplies the value of another function by a constant. More...

#include <FunctionScaler.h>

Public Member Functions

 FunctionScaler (const SimTK::Function *function, double scale)
 ~FunctionScaler ()
double calcValue (const SimTK::Vector &x) const
double calcDerivative (const std::vector< int > &derivComponents, const SimTK::Vector &x) const
int getArgumentSize () const
int getMaxDerivativeOrder () const

Protected Attributes

const SimTK::Function * _function
 The function to be scaled.
const double _scale
 The scale factor.

Detailed Description

This is a SimTK::Function that multiplies the value of another function by a constant.

Author
Peter Eastman

Constructor & Destructor Documentation

OpenSim::FunctionScaler::FunctionScaler ( const SimTK::Function *  function,
double  scale 
)
OpenSim::FunctionScaler::~FunctionScaler ( )

Member Function Documentation

double OpenSim::FunctionScaler::calcDerivative ( const std::vector< int > &  derivComponents,
const SimTK::Vector &  x 
) const
double OpenSim::FunctionScaler::calcValue ( const SimTK::Vector &  x) const
int OpenSim::FunctionScaler::getArgumentSize ( ) const
int OpenSim::FunctionScaler::getMaxDerivativeOrder ( ) const

Member Data Documentation

const SimTK::Function* OpenSim::FunctionScaler::_function
protected

The function to be scaled.

const double OpenSim::FunctionScaler::_scale
protected

The scale factor.


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