Class CurveFit
- java.lang.Object
-
- androidx.constraintlayout.core.motion.utils.CurveFit
-
- Direct Known Subclasses:
ArcCurveFit,LinearCurveFit,MonotonicCurveFit
public abstract class CurveFit extends java.lang.ObjectBase class for curve fitting / interpolation Curve fits must be capable of being differentiable and extend beyond the points (extrapolate)
-
-
Constructor Summary
Constructors Constructor Description CurveFit()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CurveFitget(int type, double[] time, double[][] y)static CurveFitgetArc(int[] arcModes, double[] time, double[][] y)abstract voidgetPos(double t, double[] v)abstract voidgetPos(double t, float[] v)abstract doublegetPos(double t, int j)abstract voidgetSlope(double t, double[] v)abstract doublegetSlope(double t, int j)abstract double[]getTimePoints()
-
-
-
Field Detail
-
SPLINE
public static final int SPLINE
- See Also:
- Constant Field Values
-
LINEAR
public static final int LINEAR
- See Also:
- Constant Field Values
-
CONSTANT
public static final int CONSTANT
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
public static CurveFit get(int type, double[] time, double[][] y)
-
getArc
public static CurveFit getArc(int[] arcModes, double[] time, double[][] y)
-
getPos
public abstract void getPos(double t, double[] v)
-
getPos
public abstract void getPos(double t, float[] v)
-
getPos
public abstract double getPos(double t, int j)
-
getSlope
public abstract void getSlope(double t, double[] v)
-
getSlope
public abstract double getSlope(double t, int j)
-
getTimePoints
public abstract double[] getTimePoints()
-
-