pal.substmodel
Class RateDistribution
java.lang.Object
|
+--pal.substmodel.RateDistribution
- All Implemented Interfaces:
- java.lang.Cloneable, Parameterized, Report, java.io.Serializable
- Direct Known Subclasses:
- GammaRates, InvariableSites, UniformRate
- public abstract class RateDistribution
- extends java.lang.Object
- implements Parameterized, Report, java.lang.Cloneable, java.io.Serializable
abstract base class for models of rate variation over sites
employing a discrete rate distribution
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
|
protected void |
printRates(java.io.PrintWriter out)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
numRates
public int numRates
- number of rate categories
rate
public double[] rate
- rates of each rate category
probability
public double[] probability
- probability of each rate
format
protected FormattedOutput format
RateDistribution
public RateDistribution(int n)
- construct discrete distribution
- Parameters:
n
- number of rate categories
printRates
protected void printRates(java.io.PrintWriter out)
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.lang.Object