#include <RandChiSquare.h>
- Author
Definition at line 37 of file RandChiSquare.h.
◆ RandChiSquare() [1/2]
CLHEP::RandChiSquare::RandChiSquare |
( |
HepRandomEngine & |
anEngine, |
|
|
double |
a = 1 |
|
) |
| |
|
inline |
◆ RandChiSquare() [2/2]
CLHEP::RandChiSquare::RandChiSquare |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a = 1 |
|
) |
| |
|
inline |
◆ ~RandChiSquare()
CLHEP::RandChiSquare::~RandChiSquare |
( |
| ) |
|
|
virtual |
◆ distributionName()
static std::string CLHEP::RandChiSquare::distributionName |
( |
| ) |
|
|
inlinestatic |
◆ engine()
◆ fire() [1/2]
double CLHEP::RandChiSquare::fire |
( |
| ) |
|
|
inline |
◆ fire() [2/2]
double CLHEP::RandChiSquare::fire |
( |
double |
a | ) |
|
Definition at line 39 of file RandChiSquare.cc.
39 {
40 return genChiSquare( localEngine.get(), a );
41}
◆ fireArray() [1/2]
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 57 of file RandChiSquare.cc.
57 {
58 for( double* v = vect; v != vect+size; ++v )
60}
◆ fireArray() [2/2]
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a |
|
) |
| |
Definition at line 62 of file RandChiSquare.cc.
63 {
64 for( double* v = vect; v != vect+size; ++v )
66}
◆ get()
std::istream & CLHEP::RandChiSquare::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 148 of file RandChiSquare.cc.
148 {
149 std::string inName;
150 is >> inName;
151 if (inName !=
name()) {
152 is.clear(std::ios::badbit | is.rdstate());
153 std::cerr << "Mismatch when expecting to read state of a "
154 <<
name() <<
" distribution\n"
155 << "Name found was " << inName
156 << "\nistream is left in the badbit state\n";
157 return is;
158 }
160 std::vector<unsigned long> t(2);
162 return is;
163 }
164
165 return is;
166}
static double longs2double(const std::vector< unsigned long > &v)
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
◆ name()
std::string CLHEP::RandChiSquare::name |
( |
| ) |
const |
|
virtual |
◆ operator()() [1/2]
double CLHEP::RandChiSquare::operator() |
( |
| ) |
|
|
inlinevirtual |
◆ operator()() [2/2]
double CLHEP::RandChiSquare::operator() |
( |
double |
a | ) |
|
|
inline |
◆ put()
std::ostream & CLHEP::RandChiSquare::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 137 of file RandChiSquare.cc.
137 {
138 int pr=os.precision(20);
139 std::vector<unsigned long> t(2);
140 os <<
" " <<
name() <<
"\n";
141 os << "Uvec" << "\n";
143 os << defaultA << " " << t[0] << " " << t[1] << "\n";
144 os.precision(pr);
145 return os;
146}
static std::vector< unsigned long > dto2longs(double d)
◆ shoot() [1/4]
static double CLHEP::RandChiSquare::shoot |
( |
| ) |
|
|
inlinestatic |
◆ shoot() [2/4]
double CLHEP::RandChiSquare::shoot |
( |
double |
a | ) |
|
|
static |
Definition at line 34 of file RandChiSquare.cc.
34 {
36 return genChiSquare( anEngine, a );
37}
static HepRandomEngine * getTheEngine()
◆ shoot() [3/4]
◆ shoot() [4/4]
double CLHEP::RandChiSquare::shoot |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a |
|
) |
| |
|
static |
Definition at line 30 of file RandChiSquare.cc.
30 {
31 return genChiSquare( anEngine, a );
32}
◆ shootArray() [1/2]
void CLHEP::RandChiSquare::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 43 of file RandChiSquare.cc.
44 {
45 for( double* v = vect; v != vect+size; ++v )
47}
◆ shootArray() [2/2]
void CLHEP::RandChiSquare::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 49 of file RandChiSquare.cc.
52{
53 for( double* v = vect; v != vect+size; ++v )
54 *v =
shoot(anEngine,a);
55}
The documentation for this class was generated from the following files: