Class MEAL::Composite

class Composite : public MEAL::ParameterPolicy

Parameter policy for composite functions.

Public Functions

Composite(Function *context)

Default constructor.

inline virtual Composite *clone(Function *context) const

Clone constructor.

unsigned get_nmodel() const

Get the number of models mapped into this model.

std::string class_name() const

Get the name used in verbose output.

virtual unsigned get_nparam() const

Return the number of parameters.

virtual std::string get_name(unsigned index) const

Return the name of the specified parameter.

virtual std::string get_description(unsigned index) const

Return the name of the specified parameter.

virtual double get_param(unsigned index) const

Return the value of the specified parameter.

virtual void set_param(unsigned index, double value)

Set the value of the specified parameter.

virtual double get_variance(unsigned index) const

Return the variance of the specified parameter.

virtual void set_variance(unsigned index, double variance)

Set the variance of the specified parameter.

virtual bool get_infit(unsigned index) const

Return true if parameter at index is to be fitted.

virtual void set_infit(unsigned index, bool flag)

Set flag for parameter at index to be fitted.

void set_argument(unsigned dimension, Argument *axis)

Set the independent variable of the specified dimension.

template<class Type>
inline void map(Project<Type> &model)

Convenience interface to map (Projection*).

template<class Type>
inline void unmap(Project<Type> &model)

Convenience interface to unmap (Projection*).

void map(Projection *model)

Map the Projection into the composite mappting.

void unmap(Projection *model)

Remove the Projection from the composite mapping.

void clear()

Clear all models.

void get_imap(const Function *model, std::vector<unsigned>::iterator &imap) const

Get the mapping for the given Function.

void attribute_changed(Function::Attribute attribute)

Method called when a Function attribute has changed.