public class AS159 extends Object implements Seedable
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)
Constructs a random table generator according to the row and column totals.
|
AS159(int[] rowSums,
int[] colSums,
RandomLongGenerator uniform)
Constructs a random table generator according to the row and column totals.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidated(Matrix A)
Checks whether a matrix satisfies the row and column sums.
|
AS159.RandomMatrix |
nextMatrix()
Constructs a random matrix based on the row and column sums.
|
void |
seed(long... seeds)
Seed the random number/vector/scenario generator to produce repeatable experiments.
|
public AS159(int[] rowSums,
int[] colSums)
rowSums - the row totalscolSums - the column totalspublic AS159(int[] rowSums,
int[] colSums,
RandomLongGenerator uniform)
rowSums - the row totalscolSums - the column totalsuniform - a uniform random number generatorpublic void seed(long... seeds)
Seedablepublic boolean isValidated(Matrix A)
A - a matrixtrue if A satisfies the constraintspublic AS159.RandomMatrix nextMatrix()
Copyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.