Class ParetoFitting
java.lang.Object
jwat.fitting.ParetoFitting
- All Implemented Interfaces:
FittingAlgorithm
Pareto distribution fitting algorithm of JWAT, based on the Gulati-Shapiro test of hypothesis.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]double[]booleanisFitted()Method for applying the Gulati-Shapiro test of hypothesis.boolean
-
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:
getEstimatedParametersin interfaceFittingAlgorithm
-
isFitted
public boolean isFitted()Method for applying the Gulati-Shapiro test of hypothesis. Supposes that the input data is already ordered.- Specified by:
isFittedin interfaceFittingAlgorithm- Returns:
- true if the data is fitted by the Pareto distribution
-
isLastRunFitted
public boolean isLastRunFitted()- Specified by:
isLastRunFittedin interfaceFittingAlgorithm
-
generateQQPlot
public double[] generateQQPlot()- Specified by:
generateQQPlotin interfaceFittingAlgorithm
-