#include <RandChiSquare.h>
- Author
Definition at line 37 of file RandChiSquare.h.
CLHEP::RandChiSquare::RandChiSquare |
( |
HepRandomEngine & |
anEngine, |
|
|
double |
a = 1 |
|
) |
| |
|
inline |
CLHEP::RandChiSquare::RandChiSquare |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a = 1 |
|
) |
| |
|
inline |
CLHEP::RandChiSquare::~RandChiSquare |
( |
| ) |
|
|
virtual |
static std::string CLHEP::RandChiSquare::distributionName |
( |
| ) |
|
|
inlinestatic |
double CLHEP::RandChiSquare::fire |
( |
| ) |
|
|
inline |
double CLHEP::RandChiSquare::fire |
( |
double |
a | ) |
|
Definition at line 40 of file RandChiSquare.cc.
41 return genChiSquare( localEngine.get(), a );
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 58 of file RandChiSquare.cc.
59 for(
double* v = vect; v != vect+size; ++v )
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a |
|
) |
| |
Definition at line 63 of file RandChiSquare.cc.
65 for(
double* v = vect; v != vect+size; ++v )
std::istream & CLHEP::RandChiSquare::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 149 of file RandChiSquare.cc.
152 if (inName !=
name()) {
153 is.clear(std::ios::badbit | is.rdstate());
154 std::cerr <<
"Mismatch when expecting to read state of a "
155 <<
name() <<
" distribution\n"
156 <<
"Name found was " << inName
157 <<
"\nistream is left in the badbit state\n";
161 std::vector<unsigned long> t(2);
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
static double longs2double(const std::vector< unsigned long > &v)
std::string CLHEP::RandChiSquare::name |
( |
| ) |
const |
|
virtual |
double CLHEP::RandChiSquare::operator() |
( |
| ) |
|
|
inlinevirtual |
double CLHEP::RandChiSquare::operator() |
( |
double |
a | ) |
|
|
inline |
std::ostream & CLHEP::RandChiSquare::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 138 of file RandChiSquare.cc.
139 int pr=os.precision(20);
140 std::vector<unsigned long> t(2);
141 os <<
" " <<
name() <<
"\n";
142 os <<
"Uvec" <<
"\n";
144 os << defaultA <<
" " << t[0] <<
" " << t[1] <<
"\n";
static std::vector< unsigned long > dto2longs(double d)
static double CLHEP::RandChiSquare::shoot |
( |
| ) |
|
|
inlinestatic |
double CLHEP::RandChiSquare::shoot |
( |
double |
a | ) |
|
|
static |
Definition at line 35 of file RandChiSquare.cc.
37 return genChiSquare( anEngine, a );
static HepRandomEngine * getTheEngine()
double CLHEP::RandChiSquare::shoot |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a |
|
) |
| |
|
static |
void CLHEP::RandChiSquare::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 44 of file RandChiSquare.cc.
46 for(
double* v = vect; v != vect+size; ++v )
void CLHEP::RandChiSquare::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 50 of file RandChiSquare.cc.
54 for(
double* v = vect; v != vect+size; ++v )
55 *v =
shoot(anEngine,a);
The documentation for this class was generated from the following files: