bb.science
Class GaussianFit

java.lang.Object
  extended by bb.science.DistributionFit
      extended by bb.science.GaussianFit

public class GaussianFit
extends DistributionFit

Subclass of DistributionFit that is customized for the fitting of a Gaussian distribution to data as performed by Math2.gaussianFit.

This class adds no new instance state to its superclass. Instead, it merely offers a more convenient constructor and accesor methods.

Author:
Brent Boyer

Field Summary
private static String[] fitMeasureLabels
           
private static String[] paramLabels
           
 
Constructor Summary
GaussianFit(double mean, double sd, double andersonDarling, double kolmogorovSmirnov, double[] bounds, double[] pdfObserved, double[] pdfTheory)
           
 
Method Summary
 double getAndersonDarling()
          Returns the Anderson-Darling goodness of fit measure.
 double getKolmogorovSmirnov()
          Returns the Kolmogorov-Smirnov goodness of fit measure.
 double getMean()
          Returns the mean parameter of the fitted Gaussian.
 double getSd()
          Returns the sd parameter of the fitted Gaussian.
 
Methods inherited from class bb.science.DistributionFit
getBounds, getFitMeasureLabels, getFitMeasures, getParamLabels, getParams, getPdfObserved, getPdfTheory, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

paramLabels

private static final String[] paramLabels

fitMeasureLabels

private static final String[] fitMeasureLabels
Constructor Detail

GaussianFit

public GaussianFit(double mean,
                   double sd,
                   double andersonDarling,
                   double kolmogorovSmirnov,
                   double[] bounds,
                   double[] pdfObserved,
                   double[] pdfTheory)
            throws IllegalArgumentException
Throws:
IllegalArgumentException
Method Detail

getMean

public double getMean()
Returns the mean parameter of the fitted Gaussian.


getSd

public double getSd()
Returns the sd parameter of the fitted Gaussian.


getAndersonDarling

public double getAndersonDarling()
Returns the Anderson-Darling goodness of fit measure.


getKolmogorovSmirnov

public double getKolmogorovSmirnov()
Returns the Kolmogorov-Smirnov goodness of fit measure.