Class ParetoFitting

java.lang.Object
jwat.fitting.ParetoFitting
All Implemented Interfaces:
FittingAlgorithm

public class ParetoFitting extends Object implements FittingAlgorithm
Pareto distribution fitting algorithm of JWAT, based on the Gulati-Shapiro test of hypothesis.
  • Constructor Details

    • ParetoFitting

      public ParetoFitting(double[] data, double sign)
      Constructor. Note that that MUST BE ordered in ascending order by the caller!
      Parameters:
      data -
      sign -
  • Method Details

    • getEstimatedParameters

      public double[] getEstimatedParameters()
      Specified by:
      getEstimatedParameters in interface FittingAlgorithm
    • isFitted

      public boolean isFitted()
      Method for applying the Gulati-Shapiro test of hypothesis. Supposes that the input data is already ordered.
      Specified by:
      isFitted in interface FittingAlgorithm
      Returns:
      true if the data is fitted by the Pareto distribution
    • isLastRunFitted

      public boolean isLastRunFitted()
      Specified by:
      isLastRunFitted in interface FittingAlgorithm
    • generateQQPlot

      public double[] generateQQPlot()
      Specified by:
      generateQQPlot in interface FittingAlgorithm