hep.aida.ext
Interface IVariable
-
public interface IVariable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidaddRange(double lower, double upper)Add a new range to the existing range set for the IVariable.voidconnect(IEvaluator ev)voidconnect(ITuple data)ITupleconnection()doubleerror()Get current error of the IVariable.booleanisConnected()Check if the IVariable is connected.booleanisDependent()Check if the IVariable represents variable or parameter.booleanisFixed()Get how the IVariable can be used in fitting.booleanisInRange()Check if current value of the IVariable is in the valid range set.booleanisInRange(double value)Check if provided value is in the IVariable valid range set.java.lang.Stringlabel()Get label for this IVariable.java.lang.Stringname()Get name for this IVariable.voidsetDependent(boolean state)Set IVariable to represent variable or parameter.voidsetFixed(boolean state)Set how the IVariable can be used in fitting.voidsetRange(double lower, double upper)Set new range for the IVariable.voidsetStep(double step)Set initial step for fitting.voidsetUnits(java.lang.String units)Set units.voidsetUseBounds(boolean state)Set how fitter should treat bounds for the IVariable.booleansetValue(double value)Set value for the IVariable.java.lang.Stringunits()Get units.booleanuseBounds()Get how fitter should treat bounds for the IVariable.doublevalue()Get current value of the IVariable.
-
-
-
Method Detail
-
label
java.lang.String label()
Get label for this IVariable.- Returns:
- label.
-
name
java.lang.String name()
Get name for this IVariable.- Returns:
- name.
-
setValue
boolean setValue(double value)
Set value for the IVariable.- Parameters:
value- Value of IVariable.- Returns:
trueif the value was set succesfully,falseotherwise, for example if the IVariable is bounded and value is out of range.
-
value
double value()
Get current value of the IVariable.- Returns:
- Current value of the IVariable.
-
error
double error()
Get current error of the IVariable.- Returns:
- Current error of the IVariable.
-
setRange
void setRange(double lower, double upper)Set new range for the IVariable. All previous ranges are discarded first.- Parameters:
lower- Lower edge of the valid range.upper- Upper edge of the valid range.
-
addRange
void addRange(double lower, double upper)Add a new range to the existing range set for the IVariable.- Parameters:
lower- Lower edge of the valid range.upper- Upper edge of the valid range.
-
isInRange
boolean isInRange()
Check if current value of the IVariable is in the valid range set.- Returns:
trueif current value of the IVariable is in the valid range set.
-
isInRange
boolean isInRange(double value)
Check if provided value is in the IVariable valid range set.- Parameters:
value- Value to be checked- Returns:
trueif provided value is in the IVariable valid range set.
-
setDependent
void setDependent(boolean state)
Set IVariable to represent variable or parameter.- Parameters:
state-truefor variable,falsefor parameter
-
isDependent
boolean isDependent()
Check if the IVariable represents variable or parameter.- Returns:
trueif this is variable,falseif this is parameter
-
setStep
void setStep(double step)
Set initial step for fitting.- Parameters:
step- Initial step for fitting.
-
setFixed
void setFixed(boolean state)
Set how the IVariable can be used in fitting.- Parameters:
state-truefor fixed parameter,falsefor variable parameter.
-
isFixed
boolean isFixed()
Get how the IVariable can be used in fitting.- Returns:
truefor fixed parameter,falsefor variable parameter.
-
setUseBounds
void setUseBounds(boolean state)
Set how fitter should treat bounds for the IVariable.- Parameters:
state-trueuse bounds,falsedon't use bounds.
-
useBounds
boolean useBounds()
Get how fitter should treat bounds for the IVariable.- Returns:
trueuse bounds,falsedon't use bounds.
-
connect
void connect(ITuple data)
-
connect
void connect(IEvaluator ev)
-
isConnected
boolean isConnected()
Check if the IVariable is connected.- Returns:
trueif IVariable is connected,falseif IVariable is not connected.
-
connection
ITuple connection()
-
setUnits
void setUnits(java.lang.String units)
Set units. Units can be used to annotate plot axis- Parameters:
units- String that describes units
-
units
java.lang.String units()
Get units. Units can be used to annotate plot axis- Returns:
- String that describes units
-
-
DMelt 3.0 © DataMelt by jWork.ORG