Package pulse.math
Class ParameterVector
- java.lang.Object
-
- pulse.math.ParameterVector
-
- All Implemented Interfaces:
Serializable
public class ParameterVector extends Object implements Serializable
A wrapper subclass that assignsParameterIdentifiers to specific components of the vector. Used when constructing the optimisation vector.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParameterVector(List<ParameterIdentifier> indices)Constructs anIndexedVectorwith the specified list of keywords.ParameterVector(ParameterVector v)Copy constructorParameterVector(ParameterVector proto, Vector v)Constructs anIndexedVectorbased onvand a list of keywordindices
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Parameter p)intdimension()List<NumericProperty>findMalformedElements()Finds any elements of this vector which do not pass sanity checks.List<Parameter>getParameters()doublegetParameterValue(NumericPropertyKeyword key, int index)voidsetValues(Vector v)StringtoString()VectortoVector()
-
-
-
Constructor Detail
-
ParameterVector
public ParameterVector(List<ParameterIdentifier> indices)
Constructs anIndexedVectorwith the specified list of keywords.- Parameters:
indices- a list of keywords
-
ParameterVector
public ParameterVector(ParameterVector proto, Vector v)
Constructs anIndexedVectorbased onvand a list of keywordindices- Parameters:
proto- prototype vectorv- the vector to be copied
-
ParameterVector
public ParameterVector(ParameterVector v)
Copy constructor- Parameters:
v- another vector
-
-
Method Detail
-
add
public void add(Parameter p)
-
getParameterValue
public double getParameterValue(NumericPropertyKeyword key, int index)
-
findMalformedElements
public List<NumericProperty> findMalformedElements()
Finds any elements of this vector which do not pass sanity checks.- Returns:
- a list of malformed numeric properties
-
setValues
public void setValues(Vector v)
-
dimension
public int dimension()
-
toVector
public Vector toVector()
-
-