artisynth.core.mfreemodels
Class PolynomialBasisFunction

java.lang.Object
  extended by artisynth.core.mfreemodels.PolynomialBasisFunction
All Implemented Interfaces:
DifferentiableFunction3x1, Function3x1, MISOFunction

public class PolynomialBasisFunction
extends java.lang.Object
implements DifferentiableFunction3x1


Constructor Summary
PolynomialBasisFunction(int xn, int yn, int zn)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolynomialBasisFunction

public PolynomialBasisFunction(int xn,
                               int yn,
                               int zn)
Method Detail

eval

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

getInputSize

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

eval

public double eval(Point3d in)
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

eval

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