public class AS159
extends java.lang.Object
implements java.io.Serializable
Other implementations includes 'rcont2'. For example,
| Modifier and Type | Class and Description |
|---|---|
static class |
AS159.RandomMatrix
a random matrix generated by AS159 and its probability
|
| Constructor and Description |
|---|
AS159(int[] rowSums,
int[] colSums)
Construct a random table generator according to row and column totals.
|
AS159(int[] rowSums,
int[] colSums,
RandomLongGenerator rng)
Construct a random table generator according to row and column totals.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidated(Matrix A)
Check whether a matrix satisfies the row and column sums.
|
AS159.RandomMatrix |
nextSample()
Construct a random matrix based on the row and column sums.
|
public AS159(int[] rowSums,
int[] colSums)
rowSums - row totalscolSums - column totalspublic AS159(int[] rowSums,
int[] colSums,
RandomLongGenerator rng)
rowSums - row totalscolSums - column totalsrng - a uniform random number generatorpublic boolean isValidated(Matrix A)
A - a matrixtrue if A satisfies the constraintspublic AS159.RandomMatrix nextSample()