All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tests_of_fit.NPP

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

public class NPP
extends Object

This class returns the appropriate Weisberg-Bingham scores as well as the Weisberg-Bingham version of the Shapiro-Wilk test of normality statistic. It can be used in the production of normal probability plots, and in tests of normality.

It assumes that the data has already been sorted.


Variable Index

 o scores
 o sw

Constructor Index

 o NPP()

Method Index

 o generate(double[], int, NPP)

This method takes a set of sorted data and returns the associated normal scores (Weisberg-Bingham versions) and the value of the Weisberg-Bingham version of the Shapiro-Wilk statistic for this data.

 o SW(double[], double[], int)
This routine calculates the value of a version of the Shapiro-Wilk test of normality statistic.

Variables

 o scores
 public double scores[]
 o sw
 public double sw

Constructors

 o NPP
 public NPP()

Methods

 o generate
 public void generate(double sorted_data[],
                      int n,
                      NPP npp)

This method takes a set of sorted data and returns the associated normal scores (Weisberg-Bingham versions) and the value of the Weisberg-Bingham version of the Shapiro-Wilk statistic for this data.

Parameters:
sorted_data[ ] - The data sorted from smallest to largest.
n - The number of data points.
npp - The normal probability plot (NPP) object returned by the method. This includes a vector of Weisberg-Bingham scores (in npp.scores) and the value of the Weisberg-Bingham test of normality statistic (in npp.sw).
 o SW
 public double SW(double sorted_data[],
                  double scores[],
                  int n)
This routine calculates the value of a version of the Shapiro-Wilk test of normality statistic. The version depends on the values of the scores.

It assumes that the data has already been sorted.


All Packages  Class Hierarchy  This Package  Previous  Next  Index