public class TrialPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Variable,java.lang.Number> |
_values
A table of trial values keyed by variable
|
Constructor and Description |
---|
TrialPoint(java.util.Map<Variable,java.lang.Number> values)
Primary constructor.
|
TrialPoint(TrialPoint trialPoint)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getValue(Variable variable)
Get the value corresponding to the specified variable.
|
java.util.Map<Variable,java.lang.Number> |
getValueMap()
Get the map of variable/value pairs.
|
java.lang.String |
toString()
A string for displaying a trial point.
|
protected final java.util.Map<Variable,java.lang.Number> _values
public TrialPoint(java.util.Map<Variable,java.lang.Number> values)
values
- The new values used to map trial pointspublic TrialPoint(TrialPoint trialPoint)
trialPoint
- the trial point to copypublic double getValue(Variable variable)
variable
- The variable for which to fetch the value.public java.util.Map<Variable,java.lang.Number> getValueMap()
public java.lang.String toString()
toString
in class java.lang.Object