MPQC  3.0.0-alpha
sc::GaussianFit< Function, Weight > Class Template Reference

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
 

Detailed Description

template<typename Function, typename Weight>
class sc::GaussianFit< Function, Weight >

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.


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

Generated at Sun Jan 26 2020 23:24:05 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.