#include <VectorFunction.h>
Public Member Functions | |
VectorFunction () | |
Default constructor. | |
VectorFunction (int aNX, int aNY) | |
Default constructor. | |
VectorFunction (const VectorFunction &aVectorFunction) | |
Copy constructor. | |
virtual | ~VectorFunction () |
Destructor. | |
virtual Object * | copy () const =0 |
Construct and return a copy of this object. | |
VectorFunction & | operator= (const VectorFunction &aVectorFunction) |
Assignment operator. | |
int | getNX () const |
Get the number of independent variables. | |
int | getNY () const |
Get the number of dependent variables. | |
void | setMinX (const Array< double > &aMinX) |
Set the minimum values of the independent variables. | |
const Array< double > & | getMinX () const |
Get the minimum values of the independent variables. | |
void | setMinX (int aXIndex, double aMinX) |
Set the minimum value of one of the independent variables. | |
double | getMinX (int aXIndex) const |
Get the minimum values of the independent variables. | |
void | setMaxX (const Array< double > &aMaxX) |
Set the maximum values of the independent variables. | |
const Array< double > & | getMaxX () const |
Get the maximum values of the independent variables. | |
void | setMaxX (int aXIndex, double aMaxX) |
Set the maximum value of one of the independent variables. | |
double | getMaxX (int aXIndex) const |
Get the maximum values of the independent variables. | |
virtual void | updateBoundingBox () |
Update the bounding box for the abscissae. | |
virtual void | calcValue (const double *aX, double *rY, int aSize)=0 |
virtual void | calcValue (const Array< double > &aX, Array< double > &rY)=0 |
virtual void | calcDerivative (const Array< double > &aX, Array< double > &rY, const Array< int > &aDerivWRT)=0 |
Protected Attributes | |
int | _nX |
Number of independent variables. | |
int | _nY |
Number of dependant variables. | |
Array< double > | _minX |
Array containing minimum allowed values of the independent variables. | |
Array< double > | _maxX |
Array containing maximum allowed values of the independent variables. |
VectorFunction::VectorFunction | ( | ) |
Default constructor.
VectorFunction::VectorFunction | ( | int | aNX, | |
int | aNY | |||
) |
Default constructor.
VectorFunction::VectorFunction | ( | const VectorFunction & | aVectorFunction | ) |
Copy constructor.
aVectorFunction | Function to copy. |
VectorFunction::~VectorFunction | ( | ) | [virtual] |
Destructor.
virtual void OpenSim::VectorFunction::calcValue | ( | const double * | aX, | |
double * | rY, | |||
int | aSize | |||
) | [pure virtual] |
virtual Object* OpenSim::VectorFunction::copy | ( | ) | const [pure virtual] |
Construct and return a copy of this object.
The object is allocated using the new operator, so the caller is responsible for deleting the returned object.
Reimplemented from OpenSim::Object.
Implemented in OpenSim::ExampleVectorFunctionUncoupledNxN, OpenSim::VectorFunctionUncoupledNxN, OpenSim::VectorGCVSplineR1R3, and OpenSim::VectorFunctionForActuators.
double VectorFunction::getMaxX | ( | int | aXIndex | ) | const |
Get the maximum values of the independent variables.
aX | Index of the independent variable value to be set. |
const Array< double > & VectorFunction::getMaxX | ( | ) | const |
Get the maximum values of the independent variables.
double VectorFunction::getMinX | ( | int | aXIndex | ) | const |
Get the minimum values of the independent variables.
aXIndex | Index of the independent variable value to be set. |
const Array< double > & VectorFunction::getMinX | ( | ) | const |
Get the minimum values of the independent variables.
int VectorFunction::getNX | ( | ) | const |
Get the number of independent variables.
int VectorFunction::getNY | ( | ) | const |
Get the number of dependent variables.
VectorFunction & VectorFunction::operator= | ( | const VectorFunction & | aVectorFunction | ) |
Assignment operator.
Reimplemented from OpenSim::Object.
Reimplemented in OpenSim::ExampleVectorFunctionUncoupledNxN, OpenSim::VectorFunctionUncoupledNxN, OpenSim::VectorGCVSplineR1R3, and OpenSim::VectorFunctionForActuators.
void VectorFunction::setMaxX | ( | int | aXIndex, | |
double | aMaxX | |||
) |
Set the maximum value of one of the independent variables.
aX | Index of the independent variable value to be set. | |
aMaxX | Value of the independent variable specified by aX. |
void VectorFunction::setMaxX | ( | const Array< double > & | aMaxX | ) |
void VectorFunction::setMinX | ( | int | aXIndex, | |
double | aMinX | |||
) |
Set the minimum value of one of the independent variables.
aXIndex | Index of the independent variable value to be set. | |
aMinX | Value of the independent variable specified by aX. |
void VectorFunction::setMinX | ( | const Array< double > & | aMinX | ) |
void VectorFunction::updateBoundingBox | ( | ) | [virtual] |
Update the bounding box for the abscissae.
This method should be overrided as needed by derived classes.
Reimplemented in OpenSim::VectorGCVSplineR1R3.
Array<double> OpenSim::VectorFunction::_maxX [protected] |
Array containing maximum allowed values of the independent variables.
Array<double> OpenSim::VectorFunction::_minX [protected] |
Array containing minimum allowed values of the independent variables.
int OpenSim::VectorFunction::_nX [protected] |
Number of independent variables.
int OpenSim::VectorFunction::_nY [protected] |
Number of dependant variables.