public class RYModelFactory
extends java.lang.Object
Constructor and Description |
---|
RYModelFactory() |
Modifier and Type | Method and Description |
---|---|
static Model |
RY_Gamma(int numCats)
Creates an instance of a RY model with gamma-distributed rate
across sites
|
static Model |
RY_Gamma(Parameters p,
int numCats)
Creates an instance of a RY model with gamma-distributed rate
across sites
|
static Model |
RY()
Creates an instance of a RY model
|
static Model |
RY(Parameters p)
Creates an instance of a RY model
|
public static Model RY(Parameters p) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters to (none in
this case but for consistency this is left here)Parameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model RY()
public static Model RY_Gamma(Parameters p, int numCats) throws Parameters.ParameterException
p
- Parameters structure to add the model parameters tonumCats
- The number of gamma categories to useParameters.ParameterException
- Thrown if the name of one
of the parameters to be added by this method is already in use.public static Model RY_Gamma(int numCats)
numCats
- The number of gamma categories to use