OpenSim::FunctionScaler Class Reference

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

#include <FunctionScaler.h>

List of all members.

Public Member Functions

 FunctionScaler (const SimTK::Function *function, double scale)
 Constructor from an OpenSim::Function.
 ~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

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

Constructor from an OpenSim::Function.

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 FunctionScaler::getArgumentSize (  )  const
int 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 files:

Generated on Wed Dec 16 15:03:40 2009 for OpenSim by  doxygen 1.6.1