|
| RandomDataGenerator (int? seed=null) |
| Create a random number generator. The seed is random by default, but could be fixed to the defined value.
|
|
void | Seed (int seed) |
|
double | RandomNumber () |
| Return a uniformly random number between 0 (inclusive) and 1 (exclusive)
|
|
double | RandomNumber (double max) |
| Return a uniformly random number between 0 (inclusive) and max (exclusive)
|
|
double | RandomNumber (double min, double max) |
| Return a uniformly random number between min (inclusive) and max (exclusive)
|
|
double | RandomNonZeroNumber (double max=1) |
| Return a random number guaranteed not to be zero.
|
|
int | RandomInteger () |
| Return a random integer up to the maximum integer size.
|
|
byte | RandomByte () |
| Return a random byte (0-255)
|
|
byte | RandomByte (byte min, byte max) |
| Return a random byte between the given values (inclusive)
|
|
int | RandomInteger (int max) |
| Return a random integer between zero (inclusive) and max (exclusive)
|
|
int | RandomInteger (int min, int max) |
| Return a random integer between min (inclusive) and max (exclusive)
|
|
double | RandomNormalNumber (double mean=0, double stdDev=1) |
| Return a number normally distributed around the given mean according to the stdDev standard deviation.
|
|
void | AddNoiseInPlace (double[] values, double magnitude) |
| Mutate the given array by adding noise (± magnitude) and return it.
|
|
double[] | AddNoise (double[] input, double magnitude) |
| Return a copy of the given data with random noise added (± magnitude)
|
|
double[] | RandomSample (int count, double mult=1, double offset=0) |
| Uniformly distributed random numbers between 0 and 1 (multiplied by mult then added to offset ).
|
|
double[] | RandomNormalSample (int count, double mean=0, double stdDev=1) |
| Return a collection of numbers normally distributed around the given mean according to the stdDev standard deviation.
|
|
double[] | RandomSin (int count) |
| Sine wave with random frequency, amplitude, and phase.
|
|
double[] | RandomWalk (int count, double mult=1, double offset=0, double slope=0) |
| A sequence of numbers that starts at offset and "walks" randomly from one point to the next, scaled by mult with an approximate slope of slope .
|
|
List< OHLC > | RandomOHLCs (int count) |
| Return a collection OHLCs representing random price action.
|
|
List< OHLC > | RandomOHLCs (int count, DateTime start) |
| Return a collection OHLCs representing random price action.
|
|