Jpp
|
Data structure for Gaussian function on top of a flat background. More...
#include <JGauss.hh>
Public Types | |
typedef double JGauss::* | parameter_type |
Type definition of fit parameter. More... | |
Public Member Functions | |
JGauss () | |
Default constructor. More... | |
JGauss (const double mean, const double sigma, const double signal, const double background) | |
Constructor. More... | |
JGauss & | add (const JGauss &gauss) |
Add gauss. More... | |
JGauss & | sub (const JGauss &gauss) |
Subtract gauss. More... | |
JGauss & | mul (const double factor) |
Scale gauss. More... | |
bool | equals (const JGauss &gauss, const double eps=std::numeric_limits< double >::min()) const |
Equality. More... | |
JGauss & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Public Attributes | |
double | mean |
double | sigma |
double | signal |
double | background |
Friends | |
std::istream & | operator>> (std::istream &in, JGauss &gauss) |
Write Gauss to input stream. More... | |
std::ostream & | operator<< (std::ostream &out, const JGauss &gauss) |
Write Gauss to output stream. More... | |
Data structure for Gaussian function on top of a flat background.
This class implements the JMATH::JMath interface.
typedef double JGauss::* JMATH::JGauss::parameter_type |
|
inline |
|
inline |
Constructor.
mean | mean |
sigma | sigma |
signal | signal |
background | background |
|
inline |
|
inline |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 273 of file JMath.hh.
|
friend |
|
friend |
Write Gauss to output stream.
out | output stream |
gauss | gauss |