NeoParameterized
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 | Description |
---|---|
ParameterizedDoubleBundle(MutableDouble[] parameters) |
Modifier and Type | Method | 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()
NeoParameterized
getNumberOfParameters
in interface NeoParameterized
public void setParameters(double[] parameters, int startIndex)
NeoParameterized
setParameters
in interface NeoParameterized
parameters
- the array holding the parametersstartIndex
- the index into the array that the related parameters start atpublic void getParameters(double[] parameterStore, int startIndex)
NeoParameterized
getParameters
in interface NeoParameterized
startIndex
- the index into the array that the related parameters start atpublic double getLowerLimit(int n)
NeoParameterized
getLowerLimit
in interface NeoParameterized
n
- parameter numberpublic double getUpperLimit(int n)
NeoParameterized
getUpperLimit
in interface NeoParameterized
n
- parameter numberpublic void getDefaultValues(double[] store, int startIndex)
NeoParameterized
getDefaultValues
in interface NeoParameterized
public java.lang.String toString()
toString
in class java.lang.Object