#include <RandSkewNormal.h>
◆ RandSkewNormal() [1/2]
◆ RandSkewNormal() [2/2]
◆ ~RandSkewNormal()
CLHEP::RandSkewNormal::~RandSkewNormal |
( |
| ) |
|
|
virtual |
◆ distributionName()
static std::string CLHEP::RandSkewNormal::distributionName |
( |
| ) |
|
|
inlinestatic |
◆ engine()
◆ fire() [1/2]
double CLHEP::RandSkewNormal::fire |
( |
| ) |
|
◆ fire() [2/2]
◆ fireArray() [1/2]
void CLHEP::RandSkewNormal::fireArray |
( |
const int |
size, |
|
|
double * |
vect |
|
) |
| |
Definition at line 93 of file RandSkewNormal.cc.
94{
95 for( double* v = vect; v != vect+size; ++v )
96 *v =
fire( shapeParameter );
97}
◆ fireArray() [2/2]
void CLHEP::RandSkewNormal::fireArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
shape |
|
) |
| |
Definition at line 99 of file RandSkewNormal.cc.
101{
102 for( double* v = vect; v != vect+size; ++v )
104}
◆ gaussianSkewNormal()
Definition at line 108 of file RandSkewNormal.cc.
109{
110
111
112
113
114
115
116 double u[2] = {0.};
118 double delta = k/std::sqrt(1. + k*k);
119 double u1 = delta*u[0] + std::sqrt(1 - delta*delta)*u[1];
120 double r = u[0] >= 0 ? u1 : -u1;
121 return r;
122}
static void shootArray(const int size, double *vect, double mean=0.0, double stdDev=1.0)
Referenced by fire(), and shoot().
◆ get()
std::istream & CLHEP::RandSkewNormal::get |
( |
std::istream & |
is | ) |
|
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 137 of file RandSkewNormal.cc.
137 {
138 std::string inName;
139 is >> inName;
140 if (inName !=
name()) {
141 is.clear(std::ios::badbit | is.rdstate());
142 std::cerr << "Mismatch when expecting to read state of a "
143 <<
name() <<
" distribution\n"
144 << "Name found was " << inName
145 << "\nistream is left in the badbit state\n";
146 return is;
147 }
149 std::vector<unsigned long> t(2);
151 return is;
152 }
153
154 return is;
155}
static double longs2double(const std::vector< unsigned long > &v)
bool possibleKeywordInput(IS &is, const std::string &key, T &t)
◆ getLocalEngine()
◆ getShapeParameter()
double CLHEP::RandSkewNormal::getShapeParameter |
( |
| ) |
|
|
inlineprotected |
◆ name()
std::string CLHEP::RandSkewNormal::name |
( |
| ) |
const |
|
virtual |
◆ operator()() [1/2]
double CLHEP::RandSkewNormal::operator() |
( |
| ) |
|
|
virtual |
◆ operator()() [2/2]
◆ put()
std::ostream & CLHEP::RandSkewNormal::put |
( |
std::ostream & |
os | ) |
const |
|
virtual |
Reimplemented from CLHEP::HepRandom.
Definition at line 126 of file RandSkewNormal.cc.
126 {
127 long pr=os.precision(20);
128 std::vector<unsigned long> t(2);
129 os <<
" " <<
name() <<
"\n";
130 os << "Uvec" << "\n";
132 os << shapeParameter << " " << t[0] << " " << t[1] << "\n";
133 os.precision(pr);
134 return os;
135}
static std::vector< unsigned long > dto2longs(double d)
◆ shoot() [1/4]
double CLHEP::RandSkewNormal::shoot |
( |
| ) |
|
|
static |
◆ shoot() [2/4]
◆ shoot() [3/4]
◆ shoot() [4/4]
◆ shootArray() [1/2]
void CLHEP::RandSkewNormal::shootArray |
( |
const int |
size, |
|
|
double * |
vect, |
|
|
double |
shape = 0. |
|
) |
| |
|
static |
Definition at line 69 of file RandSkewNormal.cc.
71{
72 for( double* v = vect; v != vect+size; ++v )
74}
◆ shootArray() [2/2]
Definition at line 76 of file RandSkewNormal.cc.
78{
79 for( double* v = vect; v != vect+size; ++v )
80 *v =
shoot(anEngine, shape);
81}
The documentation for this class was generated from the following files: