RandomSelect.hpp File Reference

Header for RandomSelect. More...

#include <vector>
#include <limits>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  RandomLib

Classes

class  RandomLib::RandomSelect< NumericType >
 Random selection from a discrete set. More...

Defines

#define RANDOMSELECT_HPP   "$Id: RandomSelect.hpp 6429 2008-04-28 00:14:02Z ckarney $"
#define STATIC_ASSERT(cond, reason)   { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; }


Detailed Description

Header for RandomSelect.

An implementation of the Walker algorithm for selecting from a finite set.

Written by Charles Karney <charles@karney.com> and licensed under the LGPL. For more information, see http://charles.karney.info/random/

Definition in file RandomSelect.hpp.


Define Documentation

#define RANDOMSELECT_HPP   "$Id: RandomSelect.hpp 6429 2008-04-28 00:14:02Z ckarney $"

Definition at line 13 of file RandomSelect.hpp.

#define STATIC_ASSERT ( cond,
reason   )     { enum{ STATIC_ASSERT_ENUM = 1/int(cond) }; }

A simple compile-time assert.

Definition at line 23 of file RandomSelect.hpp.


Generated on Mon Nov 10 16:59:10 2008 by  doxygen 1.5.6