jhplot
Class F1D

java.lang.Object
  extended by jhplot.DrawOptions
      extended by jhplot.F1D

public class F1D
extends DrawOptions

Create a function in 1D. The function name could have parameters named in unique way as P0, P1, P2 ... They have to be replaced with values using setPar() method for evaluation


Constructor Summary
F1D(hep.aida.IFunction iname, double min, double max)
          Create F1D function from JAIDA IFunction.
F1D(java.lang.String name, double min, double max)
          Create a function in 1D.
F1D(java.lang.String title, hep.aida.IFunction iname, double min, double max)
          Create F1D function from JAIDA IFunction.
F1D(java.lang.String title, java.lang.String name, double min, double max)
          Create a function in 1D.
 
Method Summary
 void eval()
          Evaluate a function
 double getMax()
          Get the maximum value in X
 double getMin()
          Get the minumum value in X
 java.lang.String getName()
          Get the name of the function used for evaluation
 int getPoints()
          Get the number of points
 java.lang.String getTitle()
          Get the title
 double getX(int i)
          get value in X
 double getY(int i)
          get value in Y
 void setMax(double max)
          Set the maximum value in X
 void setMin(double min)
          Set Min value in X
 void setName(java.lang.String name)
          Sets a name of the function, i.e.
 void setPar(java.lang.String parameter, double value)
          Replace abstract parameter with the value (double).
 void setPar(java.lang.String parameter, int value)
          Replace abstract parameter with the value (integer).
 void setPoints(int bins)
          Sets the number points between Min and Max for evaluation
 void setTitle(java.lang.String title)
          Sets a new title of a function
 void toTable()
          Print the F1D function to a Table in a separate Frame.
 void toTable(boolean format)
          Print the F1D function to a Table in a separate Frame.
 
Methods inherited from class jhplot.DrawOptions
getBinWidth, getDrawOption, getDrawOptions, getLegend, getNameX, getNameY, getNameZ, getType, printDrawOptions, printDrawOptions, setBinWidth, setColor, setDrawLine, setDrawOption, setDrawSymbol, setErr, setErrAll, setErrColor, setErrColorX, setErrColorY, setErrFill, setErrFillColor, setErrFillColor, setErrSys, setErrSysFill, setErrSysFillColor, setErrSysFillColor, setErrSysX, setErrSysY, setErrX, setErrY, setFill, setFillColor, setFillColorTransparency, setGraphStyle, setLegend, setNameX, setNameY, setNameZ, setPenDash, setPenDash, setPenWidth, setPenWidthErr, setPenWidthErrSys, setStyle, setSymbol, setSymbolSize, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

F1D

public F1D(java.lang.String name,
           double min,
           double max)
Create a function in 1D. 500 points are used between Min and Max for evaluation

Parameters:
name - String representing the function
min - Min value
max - Max value

F1D

public F1D(java.lang.String title,
           java.lang.String name,
           double min,
           double max)
Create a function in 1D. 500 points are used between Min and Max for evaluation

Parameters:
title - String representing the title
name - String representing the function
min - Min value
max - Max value

F1D

public F1D(hep.aida.IFunction iname,
           double min,
           double max)
Create F1D function from JAIDA IFunction. Deafult 500 points are used

Parameters:
iname - input IFunction
min - Min value
max - Max value

F1D

public F1D(java.lang.String title,
           hep.aida.IFunction iname,
           double min,
           double max)
Create F1D function from JAIDA IFunction. Deafult 500 points are used

Parameters:
title - Title
iname - input IFunction
min - Min X values
max - Max X values
Method Detail

eval

public void eval()
Evaluate a function


toTable

public void toTable()
Print the F1D function to a Table in a separate Frame. The numbers are formatted to scientific format. One can sort and search the data in this table (but not modify)


toTable

public void toTable(boolean format)
Print the F1D function to a Table in a separate Frame. The numbers are formatted to scientific format. One can sort and search the data in this table (but not modify) #param format if false, numbers will not be formatted to scientific format.


setPar

public void setPar(java.lang.String parameter,
                   double value)
Replace abstract parameter with the value (double). Case sensetive.

Parameters:
parameter - parameter name
value - value

setPar

public void setPar(java.lang.String parameter,
                   int value)
Replace abstract parameter with the value (integer). Case sensetive.

Parameters:
parameter - parameter name
value - value

getX

public double getX(int i)
get value in X

Parameters:
i - index
Returns:
value in X

getY

public double getY(int i)
get value in Y

Parameters:
i - index
Returns:
value in Y

setTitle

public void setTitle(java.lang.String title)
Sets a new title of a function

Overrides:
setTitle in class DrawOptions
Parameters:
title - Title

getTitle

public java.lang.String getTitle()
Get the title

Overrides:
getTitle in class DrawOptions
Returns:
Title

setName

public void setName(java.lang.String name)
Sets a name of the function, i.e. what will be used for evaluation

Parameters:
name - Name

getName

public java.lang.String getName()
Get the name of the function used for evaluation

Returns:
Name

setMin

public void setMin(double min)
Set Min value in X

Parameters:
min - Minimum value

getMin

public double getMin()
Get the minumum value in X

Returns:
min Minimum value

setMax

public void setMax(double max)
Set the maximum value in X

Parameters:
max - Maximal value

getMax

public double getMax()
Get the maximum value in X

Returns:
Maximal value

setPoints

public void setPoints(int bins)
Sets the number points between Min and Max for evaluation

Parameters:
bins - Number of points

getPoints

public int getPoints()
Get the number of points

Returns:
Number of points


jHepWork 1.1 (C) Chekanov