public abstract class CurveFit

Known direct subclasses
ArcCurveFit

This provides provides a curve fit system that stitches the x,y path together with quarter ellipses

LinearCurveFit

This performs a simple linear interpolation in multiple dimensions

MonotonicCurveFit

This performs a spline interpolation in multiple dimensions


Base class for curve fitting / interpolation Curve fits must be capable of being differentiable and extend beyond the points (extrapolate)

Summary

Constants

static final int
static final int
LINEAR = 1
static final int
SPLINE = 0

Public constructors

Public methods

static CurveFit
get(int type, double[] time, double[][] y)
static CurveFit
getArc(int[] arcModes, double[] time, double[][] y)
abstract double
getPos(double t, int j)
abstract void
getPos(double t, double[] v)
abstract void
getPos(double t, float[] v)
abstract double
getSlope(double t, int j)
abstract void
getSlope(double t, double[] v)
abstract double[]

Constants

CONSTANT

Added in 1.1.0
public static final int CONSTANT = 2

LINEAR

Added in 1.1.0
public static final int LINEAR = 1

SPLINE

Added in 1.1.0
public static final int SPLINE = 0

Public constructors

CurveFit

Added in 1.1.0
public CurveFit()

Public methods

get

Added in 1.1.0
public static CurveFit get(int type, double[] time, double[][] y)

getArc

Added in 1.1.0
public static CurveFit getArc(int[] arcModes, double[] time, double[][] y)

getPos

Added in 1.1.0
public abstract double getPos(double t, int j)

getPos

Added in 1.1.0
public abstract void getPos(double t, double[] v)

getPos

Added in 1.1.0
public abstract void getPos(double t, float[] v)

getSlope

Added in 1.1.0
public abstract double getSlope(double t, int j)

getSlope

Added in 1.1.0
public abstract void getSlope(double t, double[] v)

getTimePoints

Added in 1.1.0
public abstract double[] getTimePoints()