|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.DrawOptions
jhplot.F1D
public class F1D
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 java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public F1D(java.lang.String name, double min, double max)
name
- String representing the functionmin
- Min valuemax
- Max valuepublic F1D(java.lang.String title, java.lang.String name, double min, double max)
title
- String representing the titlename
- String representing the functionmin
- Min valuemax
- Max valuepublic F1D(hep.aida.IFunction iname, double min, double max)
iname
- input IFunctionmin
- Min valuemax
- Max valuepublic F1D(java.lang.String title, hep.aida.IFunction iname, double min, double max)
title
- Titleiname
- input IFunctionmin
- Min X valuesmax
- Max X valuesMethod Detail |
---|
public void eval()
public void toTable()
public void toTable(boolean format)
public void setPar(java.lang.String parameter, double value)
parameter
- parameter namevalue
- valuepublic void setPar(java.lang.String parameter, int value)
parameter
- parameter namevalue
- valuepublic double getX(int i)
i
- index
public double getY(int i)
i
- index
public void setTitle(java.lang.String title)
setTitle
in class DrawOptions
title
- Titlepublic java.lang.String getTitle()
getTitle
in class DrawOptions
public void setName(java.lang.String name)
name
- Namepublic java.lang.String getName()
public void setMin(double min)
min
- Minimum valuepublic double getMin()
public void setMax(double max)
max
- Maximal valuepublic double getMax()
public void setPoints(int bins)
bins
- Number of pointspublic int getPoints()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |