public class FND extends DrawOptions
Constructor and Description |
---|
FND(FProxy f)
Initialize function from proxy.
|
FND(java.lang.String name,
java.lang.String vars)
Build a function, setting its title to the definition.
|
FND(java.lang.String title,
java.lang.String name,
java.lang.String vars)
Create a function in any dimension evaluation.
|
Modifier and Type | Method and Description |
---|---|
void |
diff(java.lang.String var)
differentiate the expression and simplify
|
void |
doc()
Show online documentation.
|
double |
eval(java.lang.String vars)
Evaluate a function at a specific point in x
|
boolean |
eval(java.lang.String indvars,
double xmin,
double xmax)
Evaluate a function at a specific point for one single variable.
|
boolean |
eval(java.lang.String indvars,
double xmin,
double xmax,
java.lang.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.
|
java.lang.String |
getFixedVars()
String with fixed variables
|
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[] |
getVars()
Return all variables
|
java.lang.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(java.lang.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.
|
java.lang.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(java.lang.String title, java.lang.String name, java.lang.String vars)
name
- String representing the functionvars
- String representing variables. Each variable should be
separated by a comma. Example "x,y,z"public FND(java.lang.String name, java.lang.String vars)
title
- Titlename
- namevars
- Optionspublic FND(FProxy f)
f
- public void setComplex()
public void simplify()
public void diff(java.lang.String var)
var
- variable used for differentiationpublic java.lang.String[] getVars()
public java.lang.String toString()
toString
in class java.lang.Object
public double eval(java.lang.String vars)
vars
- Values for evaluation separated by commas, x=1,y=2,z=3public boolean eval(java.lang.String indvars, double xmin, double xmax, java.lang.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(java.lang.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(java.lang.String name)
name
- Namepublic FProxy get()
proxy
- proxy of this function.public java.lang.String getName()
public java.lang.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 java.lang.String getFixedVars()
JHepSim. A part of HSTOOLS. version-1.2