类 FittingUtil


  • public class FittingUtil
    extends java.lang.Object
    作者:
    Yaqiang Wang
    • 构造器详细资料

      • FittingUtil

        public FittingUtil()
    • 方法详细资料

      • powerFit

        public static java.lang.Object[] powerFit​(Array x,
                                                  Array y)
        Power fitting
        参数:
        x - X array
        y - Y array
        返回:
        Fitting parameters and trend line object
      • expFit

        public static java.lang.Object[] expFit​(Array x,
                                                Array y)
        Exponent fitting
        参数:
        x - X array
        y - Y array
        返回:
        Fitting parameters and trend line object
      • polyFit

        public static java.lang.Object[] polyFit​(Array x,
                                                 Array y,
                                                 int degree)
        Polynomail fitting
        参数:
        x - X array
        y - Y array
        degree - Degree
        返回:
        Fitting parameters and trend line object
      • predict

        public static double predict​(double x,
                                     OLSTrendLine tl)
        Predict a value
        参数:
        x - X value
        tl - The trend line object
        返回:
        Predicted value
      • predict

        public static Array predict​(Array x,
                                    OLSTrendLine tl)
        Predict a value
        参数:
        x - X value
        tl - The trend line object
        返回:
        Predicted value