Class NLFittedFunction

    • Field Detail

      • MAX_ITR

        public static final int MAX_ITR
        Max number of iterations to perform.
        See Also:
        Constant Field Values
      • MIN_ITR

        public static final int MIN_ITR
        Min number of iterations to perform.
        See Also:
        Constant Field Values
      • EPSILON

        public static final double EPSILON
        Minimum allowable distance between iterations of a coefficient before considered converged.
        See Also:
        Constant Field Values
      • xSeries

        protected double[] xSeries
        Original xData
      • ySeries

        protected double[] ySeries
        Original y data
      • chisq

        protected double chisq
        Total error as X^2
      • yDataFitted

        protected double[] yDataFitted
        Fitted y-data, based on original x points.
    • Constructor Detail

      • NLFittedFunction

        public NLFittedFunction​(int pts,
                                int _ma)
    • Method Detail

      • getFittedY

        public double[] getFittedY()
      • calculateChiSq

        protected abstract void calculateChiSq()
        Calculates chi squared
      • calculateFittedY

        protected abstract void calculateFittedY()
        Calculates yDataFitted
      • displayResults

        public abstract void displayResults()
        Displays results in a panel with relevant parameters.
      • getChisq

        public double getChisq()
      • getMedian

        protected double getMedian​(double[] toSort)
        get median of given array
      • generateResiduals

        protected abstract Jama.Matrix generateResiduals()
        Calculates the residuals for a given function, not implemented since some functions might prefer to only use a subset of data points, or not use yDataFitted if working during an iteration
        Returns: