public class FND extends DrawOptions
Constructor and Description |
---|
FND(FProxy f)
Initialize function from proxy.
|
FND(String name,
String vars)
Build a function, setting its title to the definition.
|
FND(String title,
String name,
String vars)
Create a function in any dimension evaluation.
|
Modifier and Type | Method and Description |
---|---|
void |
diff(String var)
differentiate the expression and simplify
|
void |
doc()
Show online documentation.
|
double |
eval(String vars)
Evaluate a function at a specific point in x
|
boolean |
eval(String indvars,
double xmin,
double xmax)
Evaluate a function at a specific point for one single variable.
|
boolean |
eval(String indvars,
double xmin,
double xmax,
String vars)
Evaluate a function at a specific point for one single variable.
|
FProxy |
get()
Get the proxy of this function used for serialization and non-graphical
representations.
|
String |
getFixedVars()
String with fixed variables
|
double |
getMax()
Get the maximum value in X
|
double |
getMin()
Get the minimum value in X
|
String |
getName()
Get the name of the function used for evaluation
|
int |
getPoints()
Get the number of points
|
String[] |
getVars()
Return all variables
|
String |
getVarString()
Get arguments of the function (independent variables).
|
double |
getX(int i)
Get value in X-axis
|
double |
getY(int i)
Get value in Y-axis
|
boolean |
isEvaluated()
Is the function was evaluated?
|
void |
setComplex()
Treat the function as complex.
|
void |
setMax(double max)
Set the maximum value in X
|
void |
setMin(double min)
Set Min value in X
|
void |
setName(String name)
Sets a name of the function, i.e.
|
void |
setPoints(int bins)
Sets the number points between Min and Max for evaluation
|
void |
simplify()
Treat the function as complex.
|
String |
toString()
Convert to string
|
copyLinePars, getBinWidth, getColor, getDrawOption, getDrawOptions, getFillColor, getLegend, getLineParm, getLineStyle, getNameX, getNameY, getNameZ, getPenWidth, getSymbol, getSymbolShape, 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, setSymbol, setSymbolSize, setTitle, setType
public FND(String title, String name, String vars)
name
- String representing the functionvars
- String representing variables. Each variable should be
separated by a comma. Example "x,y,z"public FND(String name, String vars)
title
- Titlename
- namevars
- Optionspublic FND(FProxy f)
f
- public void setComplex()
public void simplify()
public void diff(String var)
var
- variable used for differentiationpublic String[] getVars()
public double eval(String vars)
vars
- Values for evaluation separated by commas, x=1,y=2,z=3public boolean eval(String indvars, double xmin, double xmax, String vars)
indvars
- Define independent variable, like 'x' Only one variable is
allowedxmin
- xmin value for independent variblexmax
- xmax value for independent variblevars
- define values for other variables, like 'y=1,z=3'public boolean eval(String indvars, double xmin, double xmax)
indvars
- Define independent variable, like 'x' Only one variable is
allowedxmin
- xmin value for independent variblexmax
- xmax value for independent variblepublic boolean isEvaluated()
public double getX(int i)
i
- indexpublic double getY(int i)
i
- indexpublic void setName(String name)
name
- Namepublic FProxy get()
proxy
- proxy of this function.public String getName()
public String getVarString()
public void doc()
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()
public String getFixedVars()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics