MPQC
3.0.0-alpha
|
GaussianFit<Function> is a fit of Function(x)*Weight(x) to N Gaussians on range [left,right] Valid Function and Weight are Unary Functions which take and return a double. More...
#include <math/optimize/gaussianfit.h>
Public Types | |
typedef double | Exp |
typedef double | Coef |
typedef std::pair< Exp, Coef > | Gaussian |
typedef std::vector< Gaussian > | Gaussians |
Public Member Functions | |
GaussianFit (unsigned int N, const Weight &W, double left, double right, unsigned int NP) | |
Will fit a function F with weight W evenly sampled on NP points in an interval [left,right] to N Gaussians. | |
const Gaussians & | operator() (const Function &F) const |
fit F and return the parameters of the fit. | |
Static Public Attributes | |
static const bool | weigh_F = 0 |
GaussianFit<Function> is a fit of Function(x)*Weight(x) to N Gaussians on range [left,right] Valid Function and Weight are Unary Functions which take and return a double.