#include <RandStudentT.h>
- Author
Definition at line 42 of file RandStudentT.h.
CLHEP::RandStudentT::RandStudentT |
( |
HepRandomEngine & |
anEngine, |
|
|
double |
a = 1.0 |
|
) |
| |
|
inline |
CLHEP::RandStudentT::RandStudentT |
( |
HepRandomEngine * |
anEngine, |
|
|
double |
a = 1.0 |
|
) |
| |
|
inline |
CLHEP::RandStudentT::~RandStudentT |
( |
| ) |
|
|
virtual |
static std::string CLHEP::RandStudentT::distributionName |
( |
| ) |
|
|
inlinestatic |
double CLHEP::RandStudentT::fire |
( |
| ) |
|
|
inline |
double CLHEP::RandStudentT::fire |
( |
double |
a | ) |
|
Definition at line 98 of file RandStudentT.cc.
References test::v.
104 u = 2.0 * localEngine->flat() - 1.0;
105 v = 2.0 * localEngine->flat() - 1.0;
107 while ((w = u * u + v * v) > 1.0);
109 return(u * std::sqrt(
a * ( std::exp(- 2.0 /
a * std::log(w)) - 1.0) / w));
void CLHEP::RandStudentT::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
void CLHEP::RandStudentT::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a |
|
) |
| |
std::istream & CLHEP::RandStudentT::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 150 of file RandStudentT.cc.
References CLHEP::DoubConv::longs2double(), name(), and CLHEP::possibleKeywordInput().
153 if (inName !=
name()) {
154 is.clear(std::ios::badbit | is.rdstate());
155 std::cerr <<
"Mismatch when expecting to read state of a "
156 <<
name() <<
" distribution\n"
157 <<
"Name found was " << inName
158 <<
"\nistream is left in the badbit state\n";
162 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::RandStudentT::name |
( |
| ) |
const |
|
virtual |
double CLHEP::RandStudentT::operator() |
( |
| ) |
|
|
virtual |
double CLHEP::RandStudentT::operator() |
( |
double |
a | ) |
|
std::ostream & CLHEP::RandStudentT::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
static double CLHEP::RandStudentT::shoot |
( |
| ) |
|
|
inlinestatic |
double CLHEP::RandStudentT::shoot |
( |
double |
a | ) |
|
|
static |
Definition at line 125 of file RandStudentT.cc.
References CLHEP::HepRandomEngine::flat(), and test::v.
131 u = 2.0 * anEngine->flat() - 1.0;
132 v = 2.0 * anEngine->flat() - 1.0;
134 while ((w = u * u + v * v) > 1.0);
136 return(u * std::sqrt(
a * ( std::exp(- 2.0 /
a * std::log(w)) - 1.0) / w));
void CLHEP::RandStudentT::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
void CLHEP::RandStudentT::shootArray |
( |
HepRandomEngine * |
anEngine, |
|
|
const int |
size, |
|
|
double * |
vect, |
|
|
double |
a = 1.0 |
|
) |
| |
|
static |
The documentation for this class was generated from the following files: