Public Member Functions | Protected Attributes

CompoundFunction Class Reference

Function which definition is based on other function(s). More...

#include <udf.h>

Inheritance diagram for CompoundFunction:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CompoundFunction (const Settings *settings, const std::string &name, Tplate::Ptr tp, const std::vector< std::string > &vars)
virtual void init ()
void more_precomputations ()
void calculate_value_in_range (const std::vector< realt > &xx, std::vector< realt > &yy, int first, int last) const
 calculate value at x[i] and _add_ the result to y[i] (for each i)
void calculate_value_deriv_in_range (const std::vector< realt > &xx, std::vector< realt > &yy, std::vector< realt > &dy_da, bool in_dx, int first, int last) const
 wrapper around array version
std::string get_current_formula (const std::string &x="x") const
bool get_center (realt *a) const
bool get_height (realt *a) const
bool get_fwhm (realt *a) const
bool get_area (realt *a) const
bool get_nonzero_range (double level, realt &left, realt &right) const
void set_var_idx (const std::vector< Variable * > &variables)

Protected Attributes

std::vector< Variable * > intern_variables_
std::vector< Function * > intern_functions_

Detailed Description

Function which definition is based on other function(s).

Definition at line 12 of file udf.h.


Member Function Documentation

bool CompoundFunction::get_height ( realt *  a  )  const [virtual]

if consists of >1 functions and centers are in the same place height is a sum of heights

Reimplemented from Function.

Definition at line 136 of file udf.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Jul 18 2011 17:25:27 for Fityk by Doxygen 1.7.1