|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--hep.aida.ref.function.Variable
Implementaion of IVariable
Constructor Summary | |
Variable(String name,
String label,
double value)
Create a new Variable. |
|
Variable(String name,
String label,
double lowerBound,
double upperBound)
Create a new Variable. |
|
Variable(String name,
String label,
double value,
double lowerBound,
double upperBound)
Create a new Variable. |
Method Summary | |
void |
addRange(double lower,
double upper)
Add a new range to the existing range set for the IVariable. |
void |
addRange(IRange range)
Add a new range to the existing range set for the IVariable. |
void |
connect(hep.aida.IEvaluator ev)
|
void |
connect(hep.aida.ITuple data)
|
hep.aida.ITuple |
connection()
|
double |
error()
Get the error on the IVariable. |
IRange |
getRange(int index)
Get the Variable's ith ranges. |
boolean |
isConnected()
Check if the IVariable is connected. |
boolean |
isDependent()
Check if the IVariable represents variable or parameter. |
boolean |
isFixed()
Get how the IVariable can be used in fitting. |
boolean |
isInRange()
Check if current value of the IVariable is in the valid range set. |
boolean |
isInRange(double value)
Check if provided value is in the IVariable valid range set. |
String |
label()
Get label for this IVariable. |
String |
name()
Get name for this IVariable. |
int |
nRanges()
Get the number of ranges. |
void |
setDependent(boolean state)
Set IVariable to represent variable or parameter. |
void |
setError(double error)
Set the error on the IVariable. |
void |
setFixed(boolean state)
Set how the IVariable can be used in fitting. |
void |
setRange(double lower,
double upper)
Set new range for the IVariable. |
void |
setStep(double step)
Set the Variable's step size. |
void |
setUnits(String units)
Set units. |
void |
setUseBounds(boolean state)
Set how fitter should treat bounds for the IVariable. |
boolean |
setValue(double value)
Set value for the IVariable. |
double |
step()
Get the Variable's step size. |
String |
units()
Get units. |
boolean |
useBounds()
Get how fitter should treat bounds for the IVariable. |
double |
value()
Get current value of the IVariable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Variable(String name, String label, double value)
name
- The variable's name.label
- The variable's labelvalue
- The variable's value.public Variable(String name, String label, double value, double lowerBound, double upperBound)
name
- The variable's name.label
- The variable's labelvalue
- The variable's value.lowerBound
- The variable's lower bound.upperBound
- The variable's upper bound.public Variable(String name, String label, double lowerBound, double upperBound)
name
- The variable's name.label
- The variable's labellowerBound
- The variable's lower bound.upperBound
- The variable's upper bound.Method Detail |
public String label()
label
in interface IVariable
public String name()
name
in interface IVariable
public boolean setValue(double value)
setValue
in interface IVariable
value
- Value of IVariable.
true
if the value was set succesfully, false
otherwise, for example if
the IVariable is bounded and value is out of range.public double value()
value
in interface IVariable
public double error()
error
in interface IVariable
public void setError(double error)
public void setRange(double lower, double upper)
setRange
in interface IVariable
lower
- Lower edge of the valid range.upper
- Upper edge of the valid range.public void addRange(double lower, double upper)
addRange
in interface IVariable
lower
- Lower edge of the valid range.upper
- Upper edge of the valid range.public void addRange(IRange range)
range
- the IRange being added.public boolean isInRange()
isInRange
in interface IVariable
true
if current value of the IVariable is in the valid range set.public boolean isInRange(double value)
isInRange
in interface IVariable
value
- Value to be checked
true
if provided value is in the IVariable valid range set.public int nRanges()
public void setDependent(boolean state)
setDependent
in interface IVariable
state
- true
for variable, false
for parameterpublic boolean isDependent()
isDependent
in interface IVariable
true
if this is variable, false
if this is parameterpublic void setStep(double step)
setStep
in interface IVariable
step
- The variable's step size.public double step()
public void setFixed(boolean state)
setFixed
in interface IVariable
state
- true
for fixed parameter, false
for variable parameter.public boolean isFixed()
isFixed
in interface IVariable
true
for fixed parameter, false
for variable parameter.public void setUseBounds(boolean state)
setUseBounds
in interface IVariable
state
- true
use bounds, false
don't use bounds.public boolean useBounds()
useBounds
in interface IVariable
true
use bounds, false
don't use bounds.public void connect(hep.aida.ITuple data)
connect
in interface IVariable
public void connect(hep.aida.IEvaluator ev)
connect
in interface IVariable
public boolean isConnected()
isConnected
in interface IVariable
true
if IVariable is connected, false
if IVariable is not connected.public hep.aida.ITuple connection()
connection
in interface IVariable
public void setUnits(String units)
setUnits
in interface IVariable
units
- String that describes unitspublic String units()
units
in interface IVariable
public IRange getRange(int index)
index
- The IRange's index.
|
FreeHEP API Version v1.2.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |