blitz Version 0.9
Public Types | Public Member Functions | Private Attributes
DiscreteUniform< BZ_TEMPLATE_DEFAULT > Class Template Reference

#include <rand-dunif.h>

Inheritance diagram for DiscreteUniform< BZ_TEMPLATE_DEFAULT >:
IRNGWrapper< IRNG, stateTag >

List of all members.

Public Types

typedef int T_numtype
typedef P_uniform T_uniform
typedef T T_numtype

Public Member Functions

 DiscreteUniform (int low, int high, double=0)
void randomize ()
int random ()
 DiscreteUniform (T n)
random ()

Private Attributes

int low_
int range_
T_uniform uniform_
n_

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
class DiscreteUniform< BZ_TEMPLATE_DEFAULT >


Member Typedef Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_numtype
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_numtype
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
typedef P_uniform DiscreteUniform< BZ_TEMPLATE_DEFAULT >::T_uniform

Constructor & Destructor Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
DiscreteUniform< BZ_TEMPLATE_DEFAULT >::DiscreteUniform ( int  low,
int  high,
double  = 0 
) [inline]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
DiscreteUniform< BZ_TEMPLATE_DEFAULT >::DiscreteUniform ( n) [inline]

References n.


Member Function Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::random ( ) [inline]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::random ( void  ) [inline]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
void DiscreteUniform< BZ_TEMPLATE_DEFAULT >::randomize ( ) [inline]

Member Data Documentation

template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::low_ [private]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T DiscreteUniform< BZ_TEMPLATE_DEFAULT >::n_ [private]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
int DiscreteUniform< BZ_TEMPLATE_DEFAULT >::range_ [private]
template<typename P_uniform BZ_TEMPLATE_DEFAULT>
T_uniform DiscreteUniform< BZ_TEMPLATE_DEFAULT >::uniform_ [private]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines