|
|||||||||
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(java.lang.String name)
Create a function in 2D for evaluation. |
|
F2D(java.lang.String name,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Build a 2D function. |
|
F2D(java.lang.String title,
hep.aida.IFunction iname,
double Xmin,
double Xmax,
double Ymin,
double Ymax)
Create a F2D function from JAIDA IFunction. |
|
F2D(java.lang.String title,
java.lang.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) |
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 |
java.lang.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 |
java.lang.String |
getTitle()
Get the title |
double |
integral(int N,
double minX,
double maxX,
double minY,
double maxY)
Numerical integration using trapezium rule. |
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(java.lang.String name)
Sets a name of the function, i.e. |
void |
setPoints(int bins)
Get the number of points |
void |
setTitle(java.lang.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(java.lang.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(java.lang.String title, java.lang.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(java.lang.String name, double Xmin, double Xmax, double Ymin, double Ymax)
name
- NameXmin
- X-minXmax
- X-maxYmin
- Y-minYmax
- Y-maxpublic F2D(java.lang.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(java.lang.String title)
setTitle
in class DrawOptions
title
- Titlepublic java.lang.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(java.lang.String name)
name
- Namepublic java.lang.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()
|
|||||||||
PREV CLASS NEXT CLASS | All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |