public class ConstantFunction3x1 extends java.lang.Object implements Diff2Function3x1
Constructor and Description |
---|
ConstantFunction3x1(double c) |
Modifier and Type | Method and Description |
---|---|
double |
eval(double in) |
double |
eval(double x,
double y,
double z) |
double |
eval(Vector3d in)
Evaluates this function for the specified inputs.
|
double |
eval(Vector3d deriv,
Vector3d in)
Evaluates this function for the specified inputs.
|
double |
eval(VectorNd in)
Evaluates this function for the specified inputs.
|
double |
evalDerivative(double x,
double y,
double z,
int dx,
int dy,
int dz)
Evaluates 1st and 2nd order derivatives, one at a time.
|
double |
evalDerivative(Point3d in,
int[] derivatives)
Evaluates 1st and 2nd order derivatives, one at a time.
|
double |
getVal() |
int |
inputSize()
Queries the number of inputs expected by this function.
|
void |
setVal(double val) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eval
public double getVal()
public void setVal(double val)
public double eval(double in)
public double eval(VectorNd in)
Diff1Function3x1
FunctionNx1.inputSize()
.eval
in interface Diff1Function3x1
eval
in interface Function3x1
eval
in interface FunctionNx1
public double eval(Vector3d in)
Function3x1
eval
in interface Function3x1
public double eval(Vector3d deriv, Vector3d in)
Diff1Function3x1
deriv
is not
null
, the derivative is also computed and returned in this
argument.eval
in interface Diff1Function3x1
deriv
- if not null
, returns the derivative valuesin
- function input valuespublic int inputSize()
Function3x1
inputSize
in interface Function3x1
inputSize
in interface FunctionNx1
public double eval(double x, double y, double z)
eval
in interface Function3x1
public double evalDerivative(Point3d in, int[] derivatives)
Diff2Function3x1
evalDerivative
in interface Diff2Function3x1
public double evalDerivative(double x, double y, double z, int dx, int dy, int dz)
Diff2Function3x1
evalDerivative
in interface Diff2Function3x1