20 using namespace numeric;
21 using namespace numeric::random;
44 Real cosu2 = sqrt(1.0-sinu2*sinu2);
45 Real cosu3 = sqrt(1.0-sinu3*sinu3);
54 1.0 - 2.0*q.
y()*q.
y() - 2.0*q.
z()*q.
z(), 2.0*q.
x()*q.
y() - 2.0*q.
z()*q.
w(), 2.0*q.
x()*q.
z() + 2.0*q.
y()*q.
w(),
55 2.0*q.
x()*q.
y() + 2.0*q.
z()*q.
w(), 1.0 - 2.0*q.
x()*q.
x() - 2.0*q.
z()*q.
z(), 2.0*q.
y()*q.
z() - 2.0*q.
x()*q.
w(),
56 2.0*q.
x()*q.
z() - 2.0*q.
y()*q.
w(), 2.0*q.
y()*q.
z() + 2.0*q.
x()*q.
w(), 1.0 - 2.0*q.
x()*q.
x() - 2.0*q.
y()*q.
y()
xyzVector< Real > random_vector_unit_cube()
xyzVector< Real > random_vector_spherical()
Value const & w() const
w
xyzVector< Real > random_vector()
Quaternion< Real > random_unit_quaternion()
xyzTransform< Real > random_xform()
double gaussian()
Generate a random number pulled from a standard normal – i.e. mean of zero and standard deviation of...
xyzVector: Fast (x,y,z)-coordinate numeric vector
Value const & x() const
x
xyzMatrix< Real > random_rotation()
xyzTransform< Real > gaussian_random_xform(Real const &angsd, Real const &movsd)
Random vectors and stuff.
xyzMatrix< T > rotation_matrix_degrees(xyzVector< T > const &axis, T const &theta)
Rotation matrix for rotation about an axis by an angle in degrees.
xyzMatrix: Fast 3x3 xyz matrix template
Value const & y() const
y
double uniform()
Generate a random number between 0 and 1. Threadsafe since each thread uses its own random generator...
xyzVector< Real > random_normal()
Value const & z() const
z
Unit quaternion 3-D orientation representation.
static xyzMatrix cols(Value const &xx_a, Value const &yx_a, Value const &zx_a, Value const &xy_a, Value const &yy_a, Value const &zy_a, Value const &xz_a, Value const &yz_a, Value const &zz_a)
Column-ordered value named constructor.