Class MEAL::ChainRule

template<class T>
class ChainRule : public T

Parameterizes a Function by one or more Scalar ordinates.

Given any Function, \( M({\bf a}) \), one or more parameters may be constrained by a Scalar, \( f({\bf b}) \). That is, \(a_i=f({\bf b})\). The fit flag for \(a_i\) is set to false, and the partial derivatives of \( M \) with respect to the Scalar parameters, \(\bf b\), are given by the chain rule, \({\partial M\over\partial b_k} = {\partial M\over\partial a_i}{\partial f\over\partial b_k}\).

Public Functions

inline ChainRule()

Default constructor.

inline ChainRule(const ChainRule &rule)

Copy constructor.

ChainRule &operator=(const ChainRule &rule)

Assignment operator.

void set_model(T *model)

Set the Function to be constrained by Scalar ordinates.

void set_constraint(unsigned iparam, Scalar *scalar)

Set the Scalar instance used to constrain the specified parameter.

std::string get_name() const

Return the name of the class.