public class F2D extends DrawOptions implements Serializable
Operators and functions
the following operators are supported:
| Constructor and Description |
|---|
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)
Create new function.
|
F2D(String title,
String name,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Create a function in 2D.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
de.congrace.exp4j.Calculable |
getParse()
Return parsed function.
|
int |
getPoints()
Get the number of points for evaluation of a function
|
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
|
copyLinePars, getBinWidth, getColor, getDrawOption, getDrawOptions, getLegend, getLineParm, getLineStyle, getNameX, getNameY, getNameZ, getSymbol, getSymbolSize, getTitle, getType, isBars, isErrX, isErrY, isFilled, printDrawOptions, printDrawOptions, setBars, setBinWidth, setColor, setDrawLine, setDrawLineKey, setDrawOption, setDrawSymbol, setErr, setErrAll, setErrColor, setErrColor, setErrColorX, setErrColorY, setErrFill, setErrFillColor, setErrFillColor, setErrSys, setErrSysFill, setErrSysFillColor, setErrSysFillColor, setErrSysX, setErrSysY, setErrTicSize, setErrX, setErrY, setFill, setFillColor, setFillColorTransparency, setGraphStyle, setLegend, setLineStyle, setNameX, setNameY, setNameZ, setPenDash, setPenDash, setPenWidth, setPenWidthErr, setPenWidthErrSys, setStyle, setSymbol, setSymbolSize, setTitle, setTypepublic F2D(String name)
Operators and functions
the following operators are supported:
name - String representing the functionpublic F2D(String title, String name)
title - titlename - definitionpublic F2D(String title, String name, double Xmin, double Xmax, double Ymin, double Ymax)
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 valuepublic double eval(double x,
double y)
x - value in x for evaluationy - value in y for evaluationpublic double[][] eval(double[] x,
double[] y)
x - array of values in x for evaluationy - array of values in y for evaluationpublic 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 de.congrace.exp4j.Calculable 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 Ypublic boolean isParsed()
jHepWork 3.8 ©