Class MEAL::Steps

class Steps : public MEAL::Univariate<Scalar>

A function with an arbitrary number of steps.

Each step occurs at specified points on the abscissa and, at each step, the result of the function is a new free parameter

Public Functions

Steps()

Default constructor.

Steps(const Steps&)

Copy constructor.

Steps &operator=(const Steps&)

Assignment operator.

virtual Steps *clone() const

Clone operator.

void set_param_name_prefix(const std::string&)

Set the prefix of each parameter name.

void add_step(double x)

Add a step at the given point on the abscissa.

void set_step(unsigned istep, double x)

Set the abscissa of the specified step.

void remove_step(unsigned istep)

Remove a step.

double get_step(unsigned istep) const

Get the abscissa of the specified step.

unsigned get_nstep() const

Get the number of steps.

virtual void set_abscissa(double value)

Set the abscissa value.

unsigned get_step() const

Get the current step index.

virtual std::string get_name() const

Return the name of the class.