Object-oriented Scientific Computing Library: Version 0.910
Public Member Functions | Protected Member Functions | Protected Attributes
fit_funct_fptr< vec_t > Class Template Reference

Function pointer fitting function.

#include <fit_base.h>

Inheritance diagram for fit_funct_fptr< vec_t >:
fit_funct< vec_t >

Detailed Description

template<class vec_t = ovector_base>
class fit_funct_fptr< vec_t >

Definition at line 58 of file fit_base.h.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.