Gauss model.
More...
#include <JGauss.hh>
Gauss model.
Definition at line 30 of file JGauss.hh.
◆ JGauss_t() [1/2]
| JMATH::JGauss_t::JGauss_t |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 37 of file JGauss.hh.
◆ JGauss_t() [2/2]
| JMATH::JGauss_t::JGauss_t |
( |
const double | mean, |
|
|
const double | sigma, |
|
|
const double | signal, |
|
|
const double | background ) |
|
inline |
Constructor.
Note that an error will be thrown for a sigma smaller or equal to zero.
- Parameters
-
| mean | mean |
| sigma | sigma |
| signal | signal |
| background | background |
Definition at line 55 of file JGauss.hh.
◆ equals()
| bool JMATH::JGauss_t::equals |
( |
const JGauss_t & | gauss, |
|
|
const double | eps = std::numeric_limits<double>::min() ) const |
|
inline |
Equality.
- Parameters
-
| gauss | gauss |
| eps | numerical precision |
- Returns
- true if gauss's identical; else false
Definition at line 73 of file JGauss.hh.
75 {
80 }
double gauss(const double x, const double sigma)
Gauss function (normalised to 1 at x = 0).
◆ add()
Add gauss.
- Parameters
-
- Returns
- this gauss
Definition at line 89 of file JGauss.hh.
90 {
95
96 return *this;
97 }
◆ sub()
Subtract gauss.
- Parameters
-
- Returns
- this gauss
Definition at line 106 of file JGauss.hh.
107 {
112
113 return *this;
114 }
◆ mul() [1/2]
| JGauss_t & JMATH::JGauss_t::mul |
( |
const double | factor | ) |
|
|
inline |
Scale gauss.
- Parameters
-
| factor | multiplication factor |
- Returns
- this gauss
Definition at line 123 of file JGauss.hh.
124 {
129
130 return *this;
131 }
◆ mul() [2/2]
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 354 of file JMath.hh.
355 {
356 return static_cast<JFirst_t&>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*this), object);
357 }
◆ operator>>
| std::istream & operator>> |
( |
std::istream & | in, |
|
|
JGauss_t & | gauss ) |
|
friend |
Write Gauss to input stream.
- Parameters
-
| in | input stream |
| gauss | gauss |
- Returns
- input stream
Definition at line 141 of file JGauss.hh.
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | out, |
|
|
const JGauss_t & | gauss ) |
|
friend |
Write Gauss to output stream.
- Parameters
-
| out | output stream |
| gauss | gauss |
- Returns
- output stream
Definition at line 154 of file JGauss.hh.
155 {
157
162 }
Auxiliary data structure for floating point format specification.
◆ mean
| double JMATH::JGauss_t::mean |
◆ sigma
| double JMATH::JGauss_t::sigma |
◆ signal
| double JMATH::JGauss_t::signal |
◆ background
| double JMATH::JGauss_t::background |
The documentation for this struct was generated from the following file: