Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Math Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWRandGenMCG59

Module:  Essential Math   Group:  Statistics classes


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/randmcg59.h>
RWRandgenMCG59 gen;

Description

Class RWRandGenMCG59 generates random numbers uniformly distributed over the interval [0, 1], and may be used instead of class RWRandGenerator as a template parameter to any of the distribution generators derived from abstract base class RWTRand<>. RWRandGenMCG59 is a 59-bit multiplicative congruential generator.

Unlike class RWRandGenerator, each instance of RWRandGenMCG59 contains and maintains its own, independent state. This can make it easier to use in some situations. The "internal state" of an instance of RWRandGenMCG59 consists of only a seed.

Public Constructors

RWRandGenMCG59();
RWRandGenMCG59(const RWRandGenMCG59Gen& x); 
RWRandGenMCG59(unsigned long seed);

Public Member Operators

double 
operator()();
void 
printOn(std::ostream& s) const; 
void 
scanFrom(std::istream& s);
void 
restoreFrom(RWvistream&);
void 
restoreFrom(RWFile&);
void 
saveOn(RWvostream&) const;
void 
saveOn(RWFile&) const;

Related Global Operator

std::ostream& rwmathexport
operator<< (std::ostream& s, const RWRandGenMCG59Gen& rgen);
std::istream& rwmathexport
operator>> (std::istream& s, RWRandGenMCG59Gen& rgen);


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.