public class ParameterizedDoubleBundle extends java.lang.Object implements NeoParameterized
Title: ParameterizedDoubleBundle
Description: A parameterized double bundle is simple a parameterized collection of mutable double objects. The idea is, all the changable attributes of the phylogenetic entities that are being accessed (eg the branch lengths of a tree, and the parameters of a model) can be grouped together externally (the point of this approach will become more apparent over time as PAL evolves)
| Constructor and Description |
|---|
ParameterizedDoubleBundle(MutableDouble[] parameters) |
| Modifier and Type | Method and Description |
|---|---|
void |
getDefaultValues(double[] store,
int startIndex)
get default value parameter values
|
double |
getLowerLimit(int n)
get lower parameter limit
|
int |
getNumberOfParameters()
get number of parameters
|
void |
getParameters(double[] parameterStore,
int startIndex)
get model parameter
|
double |
getUpperLimit(int n)
get upper parameter limit
|
void |
setParameters(double[] parameters,
int startIndex)
set model parameter
|
java.lang.String |
toString() |
public ParameterizedDoubleBundle(MutableDouble[] parameters)
public int getNumberOfParameters()
NeoParameterizedgetNumberOfParameters in interface NeoParameterizedpublic void setParameters(double[] parameters,
int startIndex)
NeoParameterizedsetParameters in interface NeoParameterizedparameters - the array holding the parametersstartIndex - the index into the array that the related parameters start atpublic void getParameters(double[] parameterStore,
int startIndex)
NeoParameterizedgetParameters in interface NeoParameterizedstartIndex - the index into the array that the related parameters start atpublic double getLowerLimit(int n)
NeoParameterizedgetLowerLimit in interface NeoParameterizedn - parameter numberpublic double getUpperLimit(int n)
NeoParameterizedgetUpperLimit in interface NeoParameterizedn - parameter numberpublic void getDefaultValues(double[] store,
int startIndex)
NeoParameterizedgetDefaultValues in interface NeoParameterizedpublic java.lang.String toString()
toString in class java.lang.Object