|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectModels.Distributions
public class Distributions
Class to calculate stationary and quasi-stationary distributions
Nested Class Summary | |
---|---|
static class |
Distributions.Calculation
Enumeration of the different methods of calculating a distribution |
static class |
Distributions.DistributionsException
Exception for use there is a problem calculating a distribution |
Constructor Summary | |
---|---|
Distributions()
|
Method Summary | |
---|---|
static double[] |
quasiStationary(SquareMatrix m)
Calculates a quasi-stationary distribution from a given rate matrix. |
static void |
setMethod(Distributions.Calculation m)
Sets the calculation method to be used when calculating distributions |
static double[] |
stationary(SquareMatrix m)
Calculates a stationary distribution from a given rate matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Distributions()
Method Detail |
---|
public static double[] quasiStationary(SquareMatrix m) throws Distributions.DistributionsException
setMethod(Models.Distributions.Calculation)
.
The state in posiiton zero is assumed to be the sink state
m
- The rate matrix
Distributions.DistributionsException
- If the distibution can't be calculatedpublic static double[] stationary(SquareMatrix m) throws Distributions.DistributionsException
setMethod(Models.Distributions.Calculation)
.
m
- The rate matrix
Distributions.DistributionsException
- If the distibution can't be calculatedpublic static void setMethod(Distributions.Calculation m)
m
- The calculation method to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |