maspack.function
Class ConstantFuntion3x1

java.lang.Object
  extended by maspack.function.ConstantFuntion3x1
All Implemented Interfaces:
DifferentiableFunction3x1, Function3x1, MISOFunction

public class ConstantFuntion3x1
extends java.lang.Object
implements DifferentiableFunction3x1


Constructor Summary
ConstantFuntion3x1(double c)
           
 
Method Summary
 double eval(double in)
           
 double eval(double[] in)
           
 double eval(double x, double y, double z)
           
 double eval(Point3d in)
           
 double evalDerivative(double x, double y, double z, int dx, int dy, int dz)
           
 double evalDerivative(Point3d in, int[] derivatives)
           
 int getInputSize()
           
 double getVal()
           
 void setVal(double val)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantFuntion3x1

public ConstantFuntion3x1(double c)
Method Detail

getVal

public double getVal()

setVal

public void setVal(double val)

eval

public double eval(double in)

eval

public double eval(double[] in)
Specified by:
eval in interface MISOFunction

eval

public double eval(Point3d in)
Specified by:
eval in interface DifferentiableFunction3x1
Specified by:
eval in interface Function3x1

getInputSize

public int getInputSize()
Specified by:
getInputSize in interface MISOFunction

eval

public double eval(double x,
                   double y,
                   double z)
Specified by:
eval in interface DifferentiableFunction3x1
Specified by:
eval in interface Function3x1

evalDerivative

public double evalDerivative(Point3d in,
                             int[] derivatives)
Specified by:
evalDerivative in interface DifferentiableFunction3x1

evalDerivative

public double evalDerivative(double x,
                             double y,
                             double z,
                             int dx,
                             int dy,
                             int dz)
Specified by:
evalDerivative in interface DifferentiableFunction3x1