org.jcurl.math
Class R1RNFunctionImpl

Package class diagram package R1RNFunctionImpl
java.lang.Object
  extended by org.jcurl.math.R1RNFunctionImpl
All Implemented Interfaces:
Serializable, R1RNFunction
Direct Known Subclasses:
CurveCombined, CurveFkt, CurveRock, PolynomeCurve, R1R1Function

public abstract class R1RNFunctionImpl
extends Object
implements R1RNFunction, Serializable

Abstract base class for n-dimensional curves f : R^1 -> R^n.

Version:
$Id: R1RNFunctionImpl.java 1031 2009-07-23 15:06:05Z mro $
Author:
M. Rohrmoser
See Also:
Serialized Form

Constructor Summary
protected R1RNFunctionImpl(int dim)
           
 
Method Summary
 double[] at(double t, int c, double[] ret)
          Compute the c'th derivative of all dimensions at t.
 float[] at(double t, int c, float[] ret)
          Compute the c'th derivative of all dimensions at t.
abstract  double at(double t, int c, int dim)
          Compute the c'th derivative of the given dimension at t.
 int dim()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

R1RNFunctionImpl

protected R1RNFunctionImpl(int dim)
Method Detail

at

public double[] at(double t,
                   int c,
                   double[] ret)
Description copied from interface: R1RNFunction
Compute the c'th derivative of all dimensions at t. Default implementation via iteration over R1RNFunction.at(double, int, int).

Specified by:
at in interface R1RNFunction
Parameters:
t - t-value (input)
c - derivative (0=location, 1:speed, ...)
ret - return value container
Returns:
the c'th derivative at t

at

public float[] at(double t,
                  int c,
                  float[] ret)
Description copied from interface: R1RNFunction
Compute the c'th derivative of all dimensions at t.

Specified by:
at in interface R1RNFunction
Parameters:
t - t-value (input)
c - derivative (0=location, 1:speed, ...)
ret - return value container
Returns:
the c'th derivative at t

at

public abstract double at(double t,
                          int c,
                          int dim)
Description copied from interface: R1RNFunction
Compute the c'th derivative of the given dimension at t.

Specified by:
at in interface R1RNFunction
Parameters:
t - t-value
c - derivative (0=location, 1:speed, ...)
dim - dimension (0,1,2,...)
Returns:
the c'th derivative at t

dim

public final int dim()
Specified by:
dim in interface R1RNFunction


Copyright © 2005-2009 jcurl.org. All Rights Reserved.