public class MonotonicCurveFit extends CurveFit


This performs a spline interpolation in multiple dimensions

Summary

Public constructors

MonotonicCurveFit(double[] time, double[][] y)

Public methods

static MonotonicCurveFit
buildWave(String configString)

This builds a monotonic spline to be used as a wave function

double
getPos(double t, int j)
void
getPos(double t, double[] v)
void
getPos(double t, float[] v)
double
getSlope(double t, int j)
void
getSlope(double t, double[] v)
double[]

Inherited Constants

From androidx.constraintlayout.core.motion.utils.CurveFit
static final int
static final int
LINEAR = 1
static final int
SPLINE = 0

Inherited methods

From androidx.constraintlayout.core.motion.utils.CurveFit
static CurveFit
get(int type, double[] time, double[][] y)
static CurveFit
getArc(int[] arcModes, double[] time, double[][] y)

Public constructors

MonotonicCurveFit

Added in 1.1.0
public MonotonicCurveFit(double[] time, double[][] y)

Public methods

buildWave

Added in 1.1.0
public static MonotonicCurveFit buildWave(String configString)

This builds a monotonic spline to be used as a wave function

getPos

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

getPos

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

getPos

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

getSlope

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

getSlope

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

getTimePoints

Added in 1.1.0
public double[] getTimePoints()