Class FitLine

    • Constructor Detail

      • FitLine

        public FitLine()
        Creates a new FitLine object.
      • FitLine

        public FitLine​(int nPoints,
                       float[] xData,
                       float[] yData)
        FitLine.
        Parameters:
        nPoints - number of points in the function
        xData - DOCUMENT ME!
        yData - DOCUMENT ME!
    • Method Detail

      • displayResults

        public void displayResults()
        Display results of displaying linear fitting parameters.
        Specified by:
        displayResults in class NLFittedFunction
      • fitToFunction

        public void fitToFunction​(double[] a,
                                  double[] residuals,
                                  double[][] jacobian)
        Fit line to function.
        Specified by:
        fitToFunction in class NLConstrainedEngine
        Parameters:
        a - The best guess parameter values.
        residuals - ymodel - yData.
        jacobian - The derivative values of y with respect to fitting parameters.
      • setupData

        private void setupData()
        Sets up data to test fitting of exponential.
      • generateResiduals

        protected Jama.Matrix generateResiduals()
        Description copied from class: NLFittedFunction
        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
        Specified by:
        generateResiduals in class NLFittedFunction
        Returns: