Class CurveFit

  • Direct Known Subclasses:
    ArcCurveFit, LinearCurveFit, MonotonicCurveFit

    public abstract class CurveFit
    extends java.lang.Object
    Base class for curve fitting / interpolation Curve fits must be capable of being differentiable and extend beyond the points (extrapolate)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CONSTANT  
      static int LINEAR  
      static int SPLINE  
    • Constructor Summary

      Constructors 
      Constructor Description
      CurveFit()  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static CurveFit get​(int type, double[] time, double[][] y)  
      static CurveFit getArc​(int[] arcModes, double[] time, double[][] y)  
      abstract void getPos​(double t, double[] v)  
      abstract void getPos​(double t, float[] v)  
      abstract double getPos​(double t, int j)  
      abstract void getSlope​(double t, double[] v)  
      abstract double getSlope​(double t, int j)  
      abstract double[] getTimePoints()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CurveFit

        public CurveFit()
    • 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()