Package pal.misc
Class ParameterizedDoubleBundle
java.lang.Object
pal.misc.ParameterizedDoubleBundle
- All Implemented Interfaces:
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)
- Version:
- 1.0
- Author:
- Matthew Goode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetDefaultValues(double[] store, int startIndex) get default value parameter valuesdoublegetLowerLimit(int n) get lower parameter limitintget number of parametersvoidgetParameters(double[] parameterStore, int startIndex) get model parameterdoublegetUpperLimit(int n) get upper parameter limitvoidsetParameters(double[] parameters, int startIndex) set model parametertoString()
-
Constructor Details
-
ParameterizedDoubleBundle
-
-
Method Details
-
getNumberOfParameters
public int getNumberOfParameters()Description copied from interface:NeoParameterizedget number of parameters- Specified by:
getNumberOfParametersin interfaceNeoParameterized- Returns:
- number of parameters
-
setParameters
public void setParameters(double[] parameters, int startIndex) Description copied from interface:NeoParameterizedset model parameter- Specified by:
setParametersin interfaceNeoParameterized- Parameters:
parameters- the array holding the parametersstartIndex- the index into the array that the related parameters start at
-
getParameters
public void getParameters(double[] parameterStore, int startIndex) Description copied from interface:NeoParameterizedget model parameter- Specified by:
getParametersin interfaceNeoParameterizedstartIndex- the index into the array that the related parameters start at
-
getLowerLimit
public double getLowerLimit(int n) Description copied from interface:NeoParameterizedget lower parameter limit- Specified by:
getLowerLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- lower bound
-
getUpperLimit
public double getUpperLimit(int n) Description copied from interface:NeoParameterizedget upper parameter limit- Specified by:
getUpperLimitin interfaceNeoParameterized- Parameters:
n- parameter number- Returns:
- upper bound
-
getDefaultValues
public void getDefaultValues(double[] store, int startIndex) Description copied from interface:NeoParameterizedget default value parameter values- Specified by:
getDefaultValuesin interfaceNeoParameterized
-
toString
-