public class DifferentiableVariableValues
extends java.lang.Object
Constructor and Description |
---|
DifferentiableVariableValues()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
assignmentCount()
number of assignments
|
void |
assignValue(DifferentiableVariable variable,
double value)
assign the value to the variable
|
void |
clear()
unassign all variable values
|
double |
getAssignedValue(DifferentiableVariable variable)
Get the assigned value
|
static DifferentiableVariableValues |
getInstance()
Get a new instance
|
double |
getValue(DifferentiableVariable variable)
Get the value for the variable using the assigned value if it exists; otherwise using the variable's default value
|
boolean |
isAssignedValue(DifferentiableVariable variable)
Determine whether a value has been assigned for the specified variable
|
java.lang.String |
toString()
Get the string representation of this mapping
|
void |
unassignValue(DifferentiableVariable variable)
unassign the value to the variable
|
public static DifferentiableVariableValues getInstance()
public void clear()
public int assignmentCount()
public void assignValue(DifferentiableVariable variable, double value)
public void unassignValue(DifferentiableVariable variable)
public boolean isAssignedValue(DifferentiableVariable variable)
public double getAssignedValue(DifferentiableVariable variable)
public double getValue(DifferentiableVariable variable)
public java.lang.String toString()
toString
in class java.lang.Object