|
|||||||||
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 a 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 minimum 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 a function title |
double |
getX(int i)
Get value in X-axis |
double |
getY(int i)
Get value in Y-axis |
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)
Known Bugs This class is not fool proof. If the answer is wrong then use the parenthesis to force the order of evaluation. The most likely place this will be needed is in the use of the power command. The exponent is not evaluated correctly if it begins with a unary operator.
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)
format
- if false, numbers will not be formatted to scientific
format.public void setPar(java.lang.String parameter, double value)
parameter
- parameter namevalue
- value to be insertedpublic void setPar(java.lang.String parameter, int value)
parameter
- parameter namevalue
- value to be inserted.public 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
- Title of a functionpublic 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 |