vector of parameters
More...
#include <model.h>
vector of parameters
Definition at line 177 of file model.h.
| double parameters::area |
( |
| ) |
const |
|
inline |
| double parameters::dist |
( |
const parameters & |
p | ) |
const |
|
inline |
checks if this and another vector of parameters are within 1sigma of distance
Definition at line 200 of file model.h.
202 for(
uint i=0;i<size();i++){
203 total+=at(i).dist(p[i].value);
205 return sqrt(total/size());
| double parameters::gausslikelihood |
( |
const parameters & |
p2 | ) |
const |
|
inline |
Definition at line 223 of file model.h.
225 for(
uint i=0;i<size();i++){
226 l*=TMath::Gaus((p2[i].value-at(i).value)/at(i).step);
| bool parameters::isvalid |
( |
| ) |
const |
|
inline |
checks if all the values are between their minimums and maximums
Definition at line 193 of file model.h.
Referenced by Model::veto(), and BGLmodels::BGL::veto().
194 for(const_iterator i=begin();i!=end();i++){
195 if(!i->isvalid())
return 0;
| void parameters::next |
( |
TRandom3 * |
r, |
|
|
double |
f = 1 |
|
) |
| |
|
inline |
changes randomly the value of the parameters
Definition at line 182 of file model.h.
Referenced by Peak::findPeak().
183 for(iterator i=begin();i!=end();i++){
| void parameters::setvalues |
( |
const parameters & |
p | ) |
|
|
inline |
Definition at line 208 of file model.h.
210 for(
uint i=0;i<size();i++){
211 at(i).value=p[i].value;
| vector<double> parameters::values |
The documentation for this class was generated from the following file: