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

const Int
const Int
LINEAR = 1
const Int
SPLINE = 0

Public constructors

Public functions

java-static CurveFit!
get(type: Int, time: DoubleArray!, y: Array<DoubleArray!>!)
java-static CurveFit!
getArc(arcModes: IntArray!, time: DoubleArray!, y: Array<DoubleArray!>!)
abstract Double
getPos(t: Double, j: Int)
abstract Unit
abstract Unit
abstract Double
getSlope(t: Double, j: Int)
abstract Unit
abstract DoubleArray<Double>!

Constants

CONSTANT

Added in 1.1.0-alpha13
const val CONSTANT = 2: Int

LINEAR

Added in 1.1.0-alpha13
const val LINEAR = 1: Int

SPLINE

Added in 1.1.0-alpha13
const val SPLINE = 0: Int

Public constructors

CurveFit

Added in 1.1.0-alpha13
CurveFit()

Public functions

get

Added in 1.1.0-alpha13
java-static fun get(type: Int, time: DoubleArray!, y: Array<DoubleArray!>!): CurveFit!

getArc

Added in 1.1.0-alpha13
java-static fun getArc(arcModes: IntArray!, time: DoubleArray!, y: Array<DoubleArray!>!): CurveFit!

getPos

Added in 1.1.0-alpha13
abstract fun getPos(t: Double, j: Int): Double

getPos

Added in 1.1.0-alpha13
abstract fun getPos(t: Double, v: DoubleArray!): Unit

getPos

Added in 1.1.0-alpha13
abstract fun getPos(t: Double, v: FloatArray!): Unit

getSlope

Added in 1.1.0-alpha13
abstract fun getSlope(t: Double, j: Int): Double

getSlope

Added in 1.1.0-alpha13
abstract fun getSlope(t: Double, v: DoubleArray!): Unit

getTimePoints

Added in 1.1.0-alpha13
abstract fun getTimePoints(): DoubleArray<Double>!