FreeHEP API
Version current

hep.aida.ext
Interface IVariable


public interface IVariable

Source Code:
IVariable.java

Method Summary
 void addRange(double lower, double upper)
          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 current error of the IVariable.
 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.
 void setDependent(boolean state)
          Set IVariable to represent variable or parameter.
 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 initial step for fitting.
 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.
 String units()
          Get units.
 boolean useBounds()
          Get how fitter should treat bounds for the IVariable.
 double value()
          Get current value of the IVariable.
 

Method Detail

label

public String label()
Get label for this IVariable.

Returns:
label.

name

public String name()
Get name for this IVariable.

Returns:
name.

setValue

public boolean setValue(double value)
Set value for the IVariable.

Parameters:
value - Value of IVariable.
Returns:
true if the value was set succesfully, false otherwise, for example if the IVariable is bounded and value is out of range.

value

public double value()
Get current value of the IVariable.

Returns:
Current value of the IVariable.

error

public double error()
Get current error of the IVariable.

Returns:
Current error of the IVariable.

setRange

public 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

public 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

public boolean isInRange()
Check if current value of the IVariable is in the valid range set.

Returns:
true if current value of the IVariable is in the valid range set.

isInRange

public boolean isInRange(double value)
Check if provided value is in the IVariable valid range set.

Parameters:
value - Value to be checked
Returns:
true if provided value is in the IVariable valid range set.

setDependent

public void setDependent(boolean state)
Set IVariable to represent variable or parameter.

Parameters:
state - true for variable, false for parameter

isDependent

public boolean isDependent()
Check if the IVariable represents variable or parameter.

Returns:
true if this is variable, false if this is parameter

setStep

public void setStep(double step)
Set initial step for fitting.

Parameters:
step - Initial step for fitting.

setFixed

public void setFixed(boolean state)
Set how the IVariable can be used in fitting.

Parameters:
state - true for fixed parameter, false for variable parameter.

isFixed

public boolean isFixed()
Get how the IVariable can be used in fitting.

Returns:
true for fixed parameter, false for variable parameter.

setUseBounds

public void setUseBounds(boolean state)
Set how fitter should treat bounds for the IVariable.

Parameters:
state - true use bounds, false don't use bounds.

useBounds

public boolean useBounds()
Get how fitter should treat bounds for the IVariable.

Returns:
true use bounds, false don't use bounds.

connect

public void connect(hep.aida.ITuple data)

connect

public void connect(hep.aida.IEvaluator ev)

isConnected

public boolean isConnected()
Check if the IVariable is connected.

Returns:
true if IVariable is connected, false if IVariable is not connected.

connection

public hep.aida.ITuple connection()

setUnits

public void setUnits(String units)
Set units. Units can be used to annotate plot axis

Parameters:
units - String that describes units

units

public String units()
Get units. Units can be used to annotate plot axis

Returns:
String that describes units

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.