You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/manual.adoc
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -489,9 +489,26 @@ NormalStream returns a normal distribution of random numbers, with mean mean and
489
489
----
490
490
public class NormalStream extends RandomStream
491
491
{
492
-
public NormalStream (double mean, double sd);
493
-
public NormalStream (double mean, double sd, int StreamSelect);
494
-
public NormalStream (double mean, double sd, int StreamSelect, long MGSeed, long LCGSeed);
492
+
public NormalStream (double mean, double sd);
493
+
public NormalStream (double mean, double sd, int StreamSelect);
494
+
public NormalStream (double mean, double sd, int StreamSelect, long MGSeed, long LCGSeed);
495
+
496
+
public double getNumber () throws IOException, ArithmeticException;
497
+
};
498
+
----
499
+
500
+
StreamSelect indicates the offset in the random number sequence to begin sampling, and MGSeed and LCGSeed can be used to modify the seed values used by the RandomStream class.
501
+
502
+
=== TriangularStream
503
+
504
+
TriangularStream returns a triangular distribution of random numbers, with lower limit a, upper limit b and mode c, where a < b and a ≤ c ≤ b.
505
+
506
+
----
507
+
public class TriangularStream extends RandomStream
508
+
{
509
+
public NormalStream (double a, double b, double c);
510
+
public NormalStream (double a, double b, double c, int StreamSelect);
511
+
public NormalStream (double a, double b, double c, int StreamSelect, long MGSeed, long LCGSeed);
495
512
496
513
public double getNumber () throws IOException, ArithmeticException;
@@ -40,7 +40,7 @@ public TriangularStream(double a, double b, double c) {
40
40
}
41
41
42
42
/**
43
-
* Create stream with low bound 'l' and high bound 'h' and 'm' value. Skip the first 'StreamSelect' values before returning numbers from the stream.
43
+
* Create stream with low bound 'l'(a) and high bound 'h'(b) and 'm'(c) value. Skip the first 'StreamSelect' values before returning numbers from the stream.
@@ -55,8 +55,8 @@ public TriangularStream(double a, double b, double c, int StreamSelect) {
55
55
}
56
56
57
57
/**
58
-
* Create stream with low bound 'l' and high bound 'h' and 'm' value. Skip the first 'StreamSelect' values before returning numbers from the stream. Pass the seeds 'MGSeed' and 'LCGSeed' to the base
59
-
* class.
58
+
* Create stream with low bound 'l'(a) and high bound 'h'(b) and 'm'(c) value. Skip the first 'StreamSelect' values before returning numbers from the stream. Pass the seeds 'MGSeed' and 'LCGSeed' to
0 commit comments