Package rosetta :: Package numeric :: Package random :: Module _numeric_random_
[hide private]
[frames] | no frames]

Module _numeric_random_

Classes [hide private]
  RandomGenerator
Random number generator system
  RandomGeneratorAP
  RandomGeneratorCAP
  WeightedSampler
numeric/random/WeightedSampler.hh:37
  WeightedSamplerAP
  WeightedSamplerCAP
  __CPP_mt19937_RG__
  __CPP_standard_RG__
  __CPP_uniform_RG__
  mt19937_RG
numeric/random/mt19937.hh:324
  mt19937_RGAP
  mt19937_RGCAP
  standard_RG
Generator based on rand() < clib > function.
  standard_RGAP
  standard_RGCAP
  uniform_RG
Uniform random number generator
  uniform_RGAP
  uniform_RGCAP
Functions [hide private]
 
do_recursion(...)
do_recursion( (object)r, (object)a, (object)b, (object)c, (object)lung) -> None : numeric/random/mt19937.hh:282
float :
gaussian()
Generate a random number pulled from a standard normal -- i.e.
 
gaussian_random_xform(...)
gaussian_random_xform( (float)angsd, (float)movsd) -> xyzTransform_T_double_T : numeric/random/random_xyz.hh:36
 
ini_func1(...)
ini_func1( (int)x) -> int : numeric/random/mt19937.hh:304
 
ini_func2(...)
ini_func2( (int)x) -> int : numeric/random/mt19937.hh:314
 
lshift128(...)
lshift128( (object)out, (object)in, (int)shift) -> None : numeric/random/mt19937.hh:267
xyzVector_Real :
random_normal()
numeric/random/random_xyz.hh:32
 
random_range(...)
random_range( (int)low, (int)high) -> int : Return a number uniformly drawn from the inclusive range between low and high.
xyzMatrix_Real :
random_rotation()
numeric/random/random_xyz.hh:34
Quaternion_Real :
random_unit_quaternion()
numeric/random/random_xyz.hh:33
xyzVector_Real :
random_vector()
numeric/random/random_xyz.hh:29
xyzVector_Real :
random_vector_spherical()
numeric/random/random_xyz.hh:30
xyzVector_Real :
random_vector_unit_cube()
numeric/random/random_xyz.hh:31
xyzTransform_T_double_T :
random_xform()
numeric/random/random_xyz.hh:35
 
reservoir_sample_accept_prob(...)
reservoir_sample_accept_prob( (int)n_wanted, (int)n_seen) -> float : Returns the probability that the Nth value in a sequence should be accepted using the reservoir sampling criterion.
RandomGenerator :
rg()
numeric/random/random.hh:84
 
sformat_idxof(...)
sformat_idxof( (int)i) -> int : numeric/random/mt19937.hh:250
float :
uniform()
Generate a random number between 0 and 1.
Variables [hide private]
  __package__ = None
Function Details [hide private]

do_recursion(...)

 

do_recursion( (object)r, (object)a, (object)b, (object)c, (object)lung) -> None :
    numeric/random/mt19937.hh:282

    C++ signature :
        void do_recursion(W128_T*,W128_T*,W128_T*,W128_T*,W128_T*)

gaussian()

 
    Generate a random number pulled from a standard normal -- i.e. mean of
    zero and standard deviation of 1.  Threadsafe since each thread uses its own
    random generator
    

    C++ signature :
        double gaussian()

Returns: float :

gaussian_random_xform(...)

 

gaussian_random_xform( (float)angsd, (float)movsd) -> xyzTransform_T_double_T :
    numeric/random/random_xyz.hh:36

    C++ signature :
        numeric::xyzTransform<double> gaussian_random_xform(double,double)

ini_func1(...)

 

ini_func1( (int)x) -> int :
    numeric/random/mt19937.hh:304

    C++ signature :
        unsigned int ini_func1(unsigned int)

ini_func2(...)

 

ini_func2( (int)x) -> int :
    numeric/random/mt19937.hh:314

    C++ signature :
        unsigned int ini_func2(unsigned int)

lshift128(...)

 

lshift128( (object)out, (object)in, (int)shift) -> None :
    numeric/random/mt19937.hh:267

    C++ signature :
        void lshift128(W128_T*,W128_T const*,int)

random_normal()

 
    numeric/random/random_xyz.hh:32

    C++ signature :
        numeric::xyzVector<double> random_normal()

Returns: xyzVector_Real :

random_range(...)

 

random_range( (int)low, (int)high) -> int :
    Return a number uniformly drawn from the inclusive range between low
    and high.  Threadsafe since each thread uses its own random generator.
    

    C++ signature :
        int random_range(int,int)

random_rotation()

 
    numeric/random/random_xyz.hh:34

    C++ signature :
        numeric::xyzMatrix<double> random_rotation()

Returns: xyzMatrix_Real :

random_unit_quaternion()

 
    numeric/random/random_xyz.hh:33

    C++ signature :
        numeric::Quaternion<double> random_unit_quaternion()

Returns: Quaternion_Real :

random_vector()

 
    numeric/random/random_xyz.hh:29

    C++ signature :
        numeric::xyzVector<double> random_vector()

Returns: xyzVector_Real :

random_vector_spherical()

 
    numeric/random/random_xyz.hh:30

    C++ signature :
        numeric::xyzVector<double> random_vector_spherical()

Returns: xyzVector_Real :

random_vector_unit_cube()

 
    numeric/random/random_xyz.hh:31

    C++ signature :
        numeric::xyzVector<double> random_vector_unit_cube()

Returns: xyzVector_Real :

random_xform()

 
    numeric/random/random_xyz.hh:35

    C++ signature :
        numeric::xyzTransform<double> random_xform()

Returns: xyzTransform_T_double_T :

reservoir_sample_accept_prob(...)

 

reservoir_sample_accept_prob( (int)n_wanted, (int)n_seen) -> float :
    Returns the probability that the Nth value in a sequence
    should be accepted using the reservoir sampling criterion.
    If we've seen N values and we want to keep K of them,
    the probability of the Nth value being accepted is min(K/N,1.0).
    

    C++ signature :
        double reservoir_sample_accept_prob(unsigned long,unsigned long)

rg()

 
    numeric/random/random.hh:84

    C++ signature :
        numeric::random::RandomGenerator {lvalue} rg()

Returns: RandomGenerator :

sformat_idxof(...)

 

sformat_idxof( (int)i) -> int :
    numeric/random/mt19937.hh:250

    C++ signature :
        int sformat_idxof(int)

uniform()

 
    Generate a random number between 0 and 1.  Threadsafe since each thread
    uses its own random generator.
    

    C++ signature :
        double uniform()

Returns: float :