Skylark (Sketching Library)  0.1
Public Types | Public Member Functions | Static Public Member Functions
skylark::utility::random_samples_array_t< Distribution > Struct Template Reference

#include <randgen.hpp>

List of all members.

Public Types

typedef Distribution::result_type value_type
typedef r123::Threefry4x64 RNG_t
typedef RNG_t::ctr_type ctr_t
typedef RNG_t::key_type key_t
typedef r123::MicroURNG< RNG_tURNG_t

Public Member Functions

 random_samples_array_t ()
 random_samples_array_t (size_t base, size_t size, int seed, Distribution &distribution)
 random_samples_array_t (const random_samples_array_t &other)
random_samples_array_toperator= (const random_samples_array_t &other)
value_type operator[] (size_t index) const

Static Public Member Functions

static key_t _seed_to_key (int seed)

Detailed Description

template<typename Distribution>
struct skylark::utility::random_samples_array_t< Distribution >

Random-access array of samples drawn from a distribution. It is templated over the types of each sample value and the distribution.

Definition at line 17 of file randgen.hpp.


Member Typedef Documentation

template<typename Distribution>
typedef RNG_t::ctr_type skylark::utility::random_samples_array_t< Distribution >::ctr_t

Definition at line 27 of file randgen.hpp.

template<typename Distribution>
typedef RNG_t::key_type skylark::utility::random_samples_array_t< Distribution >::key_t

Definition at line 28 of file randgen.hpp.

template<typename Distribution>
typedef r123::Threefry4x64 skylark::utility::random_samples_array_t< Distribution >::RNG_t

Convenience nicknames for Random123 types

Definition at line 26 of file randgen.hpp.

template<typename Distribution>
typedef r123::MicroURNG<RNG_t> skylark::utility::random_samples_array_t< Distribution >::URNG_t

Definition at line 29 of file randgen.hpp.

template<typename Distribution>
typedef Distribution::result_type skylark::utility::random_samples_array_t< Distribution >::value_type

Definition at line 21 of file randgen.hpp.


Constructor & Destructor Documentation

template<typename Distribution>
skylark::utility::random_samples_array_t< Distribution >::random_samples_array_t ( ) [inline]

Definition at line 42 of file randgen.hpp.

template<typename Distribution>
skylark::utility::random_samples_array_t< Distribution >::random_samples_array_t ( size_t  base,
size_t  size,
int  seed,
Distribution &  distribution 
) [inline]

Random-access array of samples drawn from a distribution.

Parameters:
[in]baseStart location within a global stream.
[in]sizeThe number of samples provided.
[in]seedThe seed for the array.
[in]distributionDistribution from which samples are drawn.

Definition at line 59 of file randgen.hpp.

template<typename Distribution>
skylark::utility::random_samples_array_t< Distribution >::random_samples_array_t ( const random_samples_array_t< Distribution > &  other) [inline]

Definition at line 76 of file randgen.hpp.


Member Function Documentation

template<typename Distribution>
static key_t skylark::utility::random_samples_array_t< Distribution >::_seed_to_key ( int  seed) [inline, static]

Definition at line 34 of file randgen.hpp.

template<typename Distribution>
random_samples_array_t& skylark::utility::random_samples_array_t< Distribution >::operator= ( const random_samples_array_t< Distribution > &  other) [inline]

Definition at line 82 of file randgen.hpp.

template<typename Distribution>
value_type skylark::utility::random_samples_array_t< Distribution >::operator[] ( size_t  index) const [inline]

Definition at line 98 of file randgen.hpp.


The documentation for this struct was generated from the following file: