#include <newran.h>
Inheritance diagram for ShiftedRandom:


Public Member Functions | |
| Real | Next () |
| ExtReal | Mean () const |
| ExtReal | Variance () const |
Private Member Functions | |
| ShiftedRandom (Random &rvx, Real sx) | |
Friends | |
| ShiftedRandom & | operator+ (Real, Random &) |
| ShiftedRandom & | operator+ (Random &, Real) |
| ShiftedRandom & | operator- (Random &, Real) |
|
||||||||||||
|
Definition at line 431 of file newran.h.
00431 : ScaledRandom(rvx, sx) {} |
|
|
Reimplemented from ScaledRandom. Definition at line 645 of file newran.cpp. References Random::Mean(), ScaledRandom::rv, and ScaledRandom::s.
|
|
|
Reimplemented from ScaledRandom. Definition at line 643 of file newran.cpp. References Random::Next(), Real, ScaledRandom::rv, and ScaledRandom::s.
|
|
|
Reimplemented from ScaledRandom. Definition at line 647 of file newran.cpp. References ScaledRandom::rv, and Random::Variance().
|
|
||||||||||||
|
Definition at line 673 of file newran.cpp.
00674 {
00675 ShiftedRandom* r = new ShiftedRandom(rv, s);
00676 if (!r) ErrorNoSpace(); return *r;
00677 }
|
|
||||||||||||
|
Definition at line 691 of file newran.cpp.
00692 {
00693 ShiftedRandom* r = new ShiftedRandom(rv, s);
00694 if (!r) ErrorNoSpace(); return *r;
00695 }
|
|
||||||||||||
|
Definition at line 679 of file newran.cpp.
00680 {
00681 ShiftedRandom* r = new ShiftedRandom(rv, -s);
00682 if (!r) ErrorNoSpace(); return *r;
00683 }
|
1.3.3