## tests_of_fit Class W2PP

java.lang.Object
|
+--tests_of_fit.W2PP


public class W2PP
extends java.lang.Object

This class returns appropriate scores as well as a correlation test of fit value. It can be used in the production of probability plots for 2-parameter Weibull distributions, and in a tests of fit for 2-parameter Weibull distributions.

It assumes that the data has already been sorted.

 Field Summary  double r  double[] scores

 Constructor Summary W2PP()

 Method Summary  double corr(double[] sorted_data, double[] scores, int n)           This routine calculates the value of a correlation goodness-of-fit test statistic.  void generate(double[] sorted_data, W2Fit w2fit, int n, W2PP w2pp)            This method takes a set of sorted data and returns the associated 2-parameter Weibull scores (Filliben version) and the value of the Filliben version of the correlation statistic for this data.

 Methods inherited from class java.lang.Object clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 Field Detail

### scores

public double[] scores

### r

public double r
 Constructor Detail

### W2PP

public W2PP()
 Method Detail

### generate

public void generate(double[] sorted_data,
W2Fit w2fit,
int n,
W2PP w2pp)

This method takes a set of sorted data and returns the associated 2-parameter Weibull scores (Filliben version) and the value of the Filliben version of the correlation statistic for this data.

Parameters:
w2fit - The 2-parameter Weibull fit object. The distribution function is 1 - \exp(-(\gamma x)^{\beta}) (in \LaTeX notation). w2fit.gamma is the value of the scale parameter \gamma (many authors refer to \lambda = 1/\gamma as the scale parameter), and w2fit.beta is the value of the shape parameter \beta.
n - The number of data points.
w2pp - The 2-parameter Weibull probability plot (W2PP) object returned by the method. This includes a vector of Filliben scores (in w2pp.scores) and the value of the correlation statistic for a test of a 2-parameter Weibull (in w2pp.r).

### corr

public double corr(double[] sorted_data,
double[] scores,
int n)
This routine calculates the value of a correlation goodness-of-fit test statistic.

It assumes that the data has already been sorted.