#include <RandChiSquare.h>
- Author
Definition at line 36 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 42 of file RandChiSquare.cc.
42 {
43 return genChiSquare( localEngine.get(), a );
44}
◆ fireArray() [1/2]
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 60 of file RandChiSquare.cc.
60 {
61 for( double* v = vect; v != vect+size; ++v )
63}
◆ fireArray() [2/2]
void CLHEP::RandChiSquare::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a |
|
) |
| |
Definition at line 65 of file RandChiSquare.cc.
66 {
67 for( double* v = vect; v != vect+size; ++v )
69}
◆ get()
std::istream & CLHEP::RandChiSquare::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 151 of file RandChiSquare.cc.
151 {
152 std::string inName;
153 is >> inName;
154 if (inName !=
name()) {
155 is.clear(std::ios::badbit | is.rdstate());
156 std::cerr << "Mismatch when expecting to read state of a "
157 <<
name() <<
" distribution\n"
158 << "Name found was " << inName
159 << "\nistream is left in the badbit state\n";
160 return is;
161 }
163 std::vector<unsigned long> t(2);
165 return is;
166 }
167
168 return is;
169}
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 140 of file RandChiSquare.cc.
140 {
141 int pr=os.precision(20);
142 std::vector<unsigned long> t(2);
143 os <<
" " <<
name() <<
"\n";
144 os << "Uvec" << "\n";
146 os << defaultA << " " << t[0] << " " << t[1] << "\n";
147 os.precision(pr);
148 return os;
149}
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 37 of file RandChiSquare.cc.
37 {
39 return genChiSquare( anEngine, a );
40}
static HepRandomEngine * getTheEngine()
◆ shoot() [3/4]
◆ shoot() [4/4]
double CLHEP::RandChiSquare::shoot |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a |
|
) |
| |
|
static |
Definition at line 33 of file RandChiSquare.cc.
33 {
34 return genChiSquare( anEngine, a );
35}
◆ shootArray() [1/2]
void CLHEP::RandChiSquare::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 46 of file RandChiSquare.cc.
47 {
48 for( double* v = vect; v != vect+size; ++v )
50}
◆ shootArray() [2/2]
void CLHEP::RandChiSquare::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
Definition at line 52 of file RandChiSquare.cc.
55{
56 for( double* v = vect; v != vect+size; ++v )
57 *v =
shoot(anEngine,a);
58}
The documentation for this class was generated from the following files: