|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultRealFunction
public abstract class DefaultRealFunction
Default implementation of RealFunction
interface.
Field Summary | |
---|---|
static double |
EPSILON
Constant used for numerical derivatives. |
Fields inherited from class cz.cuni.jagrlib.Piece |
---|
channels, info, pl, plugs, reg, TEMPLATE_TYPE, userBreak |
Fields inherited from interface cz.cuni.jagrlib.iface.RealFunction |
---|
AMPLITUDE, FREQUENCY, FREQUENCY_X, FREQUENCY_Y, VARIATION |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Constructor Summary | |
---|---|
DefaultRealFunction()
|
Method Summary | |
---|---|
double |
df(double x)
Compute derivative: df(x)/dx. |
boolean |
df(double[] arg,
double[] d)
Compute partial derivatives: df(x1,..) |
boolean |
df(double x,
double y,
double[] d)
Compute partial derivatives: df(x,y)/dx and df(x,y)/dy. |
boolean |
df(double x,
double y,
double z,
double[] d)
Compute partial derivatives: df(x,y,z)/dx, df(x,y,z)/dy and df(x,y,z)/dz. |
double |
f(double x)
Compute the mapping: double -> double . |
double |
f(double[] arg)
Compute the mapping: double[] -> double . |
double |
f(double x,
double y)
Compute the mapping: double[2] -> double . |
double |
f(double x,
double y,
double z)
Compute the mapping: double[3] -> double . |
double |
f(int x)
Compute the mapping: int -> double . |
double |
f(int[] arg)
Compute the mapping: int[] -> double . |
double |
f(int x,
int y)
Compute the mapping: int[2] -> double . |
double |
f(int x,
int y,
int z)
Compute the mapping: int[3] -> double . |
double[] |
getDomain(double[] dom)
Returns domain of the mapping. |
int[] |
getDomain(int[] dom)
Returns domain of the mapping. |
Methods inherited from class cz.cuni.jagrlib.Piece |
---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplate, setTemplateDynamic, stop |
Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Field Detail |
---|
public static final double EPSILON
Constructor Detail |
---|
public DefaultRealFunction()
Method Detail |
---|
public double f(double x)
double -> double
.
f
in interface RealFunction
public double f(int x)
int -> double
.
f
in interface RealFunction
public double f(double x, double y)
double[2] -> double
.
f
in interface RealFunction
public double f(int x, int y)
int[2] -> double
.
f
in interface RealFunction
public double f(double x, double y, double z)
double[3] -> double
.
f
in interface RealFunction
public double f(int x, int y, int z)
int[3] -> double
.
f
in interface RealFunction
public double f(double[] arg)
double[] -> double
.
f
in interface RealFunction
public double f(int[] arg)
int[] -> double
.
f
in interface RealFunction
public double df(double x)
df
in interface RealFunction
x
- Function argument.
0.0
if not implemented.public boolean df(double x, double y, double[] d)
df
in interface RealFunction
x
- X coordinate (1st argument).y
- Y coordinate (2nd argument).d
- Array to hold results (d[0]
= df(x,y)/dx,
d[1]
= df(x,y)/dy).
true
if this service is implemented.public boolean df(double x, double y, double z, double[] d)
df
in interface RealFunction
x
- X coordinate (1st argument).y
- Y coordinate (2nd argument).z
- Z coordinate (3rd argument).d
- Array to hold results (d[0]
= df(x,y,z)/dx,
d[1]
= df(x,y,z)/dy, d[2]
= df(x,y,z)/dz).
true
if this service is implemented.public boolean df(double[] arg, double[] d)
df
in interface RealFunction
arg
- Coordinate array.d
- Array to hold results (d[0]
= df(x1,...)/dx1, ...).
true
if this service is implemented.public double[] getDomain(double[] dom)
getDomain
in interface RealFunction
dom
- Domain array (dom[0]
= Xmin, dom[1]
= Xmax, etc.).
null
if this service is not implemented.public int[] getDomain(int[] dom)
getDomain
in interface RealFunction
dom
- Domain array (dom[0]
= Xmin, dom[1]
= Xmax, etc.).
null
if this service is not implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |