|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjhplot.DrawOptions
jhplot.F2D
public class F2D
Create 2D function.
Constructor Summary | |
---|---|
F2D(hep.aida.IFunction iname)
Create a F2D function from JAIDA IFunction. |
|
F2D(hep.aida.IFunction iname,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Create a F2D function from JAIDA IFunction. |
|
F2D(String name)
Create a function in 2D for evaluation. |
|
F2D(String name,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Build a 2D function. |
|
F2D(String title,
hep.aida.IFunction iname,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Create a F2D function from JAIDA IFunction. |
|
F2D(String title,
String name,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Create a function in 2D. |
Method Summary | |
---|---|
void |
doc()
Show online documentation. |
double[][] |
eval(double[] x,
double[] y)
Evaluate a function for an array of x-values |
double |
eval(double x,
double y)
Evaluate a function at a specific point in (x,y) |
H2D |
getH2D(String hname,
int hbinX,
double hminX,
double hmaxX,
int hbinY,
double hminY,
double hmaxY)
Generate a 2D histogram from the F2D function using a custom number of bins and given min and max values. |
double |
getMaxX()
Get Max value in X |
double |
getMaxY()
Get Max value in Y |
double |
getMinX()
Get Min value in X |
double |
getMinY()
Get Min value in Y |
String |
getName()
Get the name of the function used for evaluation |
graph.ParseFunction |
getParse()
Return parsed function. |
int |
getPoints()
Get the number of points for evaluation of a function |
String |
getTitle()
Get the title |
double |
integral(int N,
double minX,
double maxX,
double minY,
double maxY)
Numerical integration using trapezium rule. |
boolean |
isParsed()
If the function is parsed correctly, return true. |
void |
setMaxX(double max)
Set Max value in X |
void |
setMaxY(double max)
Set Max value in Y |
void |
setMinX(double min)
Set Min in X |
void |
setMinY(double min)
Set Min value in Y |
void |
setName(String name)
Sets a name of the function, i.e. |
void |
setPoints(int bins)
Get the number of points |
void |
setTitle(String title)
Set a title |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public F2D(String name)
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 functionpublic F2D(String title, String name, double Xmin, double Xmax, double Ymin, double Ymax)
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 function.Xmin
- Min value in XXmax
- Max value in XYmin
- Min value in YYmax
- Max value in Ypublic F2D(String name, double Xmin, double Xmax, double Ymin, double Ymax)
name
- NameXmin
- X-minXmax
- X-maxYmin
- Y-minYmax
- Y-maxpublic F2D(String title, hep.aida.IFunction iname, double Xmin, double Xmax, double Ymin, double Ymax)
title
- Titlename
- new function nameiname
- input IFunctionXmin
- Min X valueXmax
- Max X valueYmin
- Min Y valueYmax
- Max Y valuepublic F2D(hep.aida.IFunction iname)
iname
- public F2D(hep.aida.IFunction iname, double Xmin, double Xmax, double Ymin, double Ymax)
iname
- input IFunctionXmin
- Min X valueXmax
- Max X valueYmin
- Min Y valueYmax
- Max Y valueMethod Detail |
---|
public double eval(double x, double y)
x
- value in x for evaluationy
- value in y for evaluation
public double[][] eval(double[] x, double[] y)
x
- array of values in x for evaluationy
- array of values in y for evaluation
public void setTitle(String title)
setTitle
in class DrawOptions
title
- Titlepublic String getTitle()
getTitle
in class DrawOptions
public void setMinX(double min)
min
- Min valuepublic double getMinX()
public void setMinY(double min)
min
- Min value in Ypublic void doc()
public double getMinY()
public void setMaxX(double max)
max
- Max value in Xpublic void setName(String name)
name
- Namepublic String getName()
public double getMaxX()
public void setMaxY(double max)
max
- Max value in Ypublic double getMaxY()
public void setPoints(int bins)
bins
- Number of pointspublic int getPoints()
public double integral(int N, double minX, double maxX, double minY, double maxY)
N
- the number of strips to use for integration (in X and Y the
same)minX
- the first ordinate in X.maxX
- the last ordinate in X.minY
- the first ordinate in X.maxY
- the last ordinate in Y.
public graph.ParseFunction getParse()
public H2D getH2D(String hname, int hbinX, double hminX, double hmaxX, int hbinY, double hminY, double hmaxY)
hname
- histogram namehbinX
- number of X binshminX
- min value in XhmaxX
- max value in XhbinY
- number of bins in YhminY
- min value in YhmaxY
- max value in Y
public boolean isParsed()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |