fit_funct_fptr Class Template Reference

#include <fit_base.h>

Inheritance diagram for fit_funct_fptr:

fit_funct

Detailed Description

template<class param_t, class vec_t = ovector_view>
class fit_funct_fptr< param_t, vec_t >

Function pointer fitting function.

Definition at line 64 of file fit_base.h.


Public Member Functions

 fit_funct_fptr (int(*fp)(size_t np, vec_t &p, double x, double &y, param_t &pa))
 Specify a fitting function by a function pointer.
virtual int operator() (size_t np, vec_t &p, double x, double &y, param_t &pa)
 Using parameters in p, predict y given x.

Protected Attributes

int(* fptr )(size_t np, vec_t &p, double x, double &y, param_t &pa)
 Storage for the user-specified function pointer.

Private Member Functions

 fit_funct_fptr (const fit_funct_fptr &)
fit_funct_fptroperator= (const fit_funct_fptr &)

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

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page