JavaGrinders
Class Descriptives

java.lang.Object
  extended by JavaGrinders.Descriptives
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
GoodnessOfFitResults, NumberDescriptives, ReplicatedGoodnessOfFitResults, SpatialDescriptives, SquaresCrossproducts, tTestResults

public class Descriptives
extends java.lang.Object
implements java.lang.Cloneable

provides the interface for obtaining descriptive statistics from continuous variables.


Field Summary
 java.text.DecimalFormat df0
           
 java.text.DecimalFormat df2
           
 java.text.DecimalFormat df4
           
 java.text.DecimalFormat df5
           
 int[] frequencies
           
 java.util.TreeMap IDMap
           
 java.lang.Object[] itsIDs
           
 int N
           
 int nMiss
           
 int Nsel
           
 int Rows
           
 
Constructor Summary
Descriptives()
          empty private constructor ensures that the only objects of this type are the elements enumerated above
 
Method Summary
 java.lang.Object clone()
          clone the object
 void list()
          reports the appropriate descriptives for the variable
 void list(java.lang.Double hypValue)
          reports the appropriate descriptives for comparing the variable to an external value
 void listBasics()
          reports the current descriptives for the variable
 void listIDs()
          lists the frequencies for all instances of the variable using the currently selected set of rows
 void listIDs(int maxInstances)
          lists the frequencies for different instances of the variable using the currently selected set of rows up to the specified number of maxInstances
 java.lang.String listSigStars(double p)
          adds stars to indicate levels of significance
 void setLabel(java.lang.String theLabel)
          sets a label for the descriptives as a tag in reporting
 void zeroDescriptives()
          sets sums for Capture descriptives to zeros
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Rows

public int Rows

Nsel

public int Nsel

N

public int N

nMiss

public int nMiss

df5

public java.text.DecimalFormat df5

df4

public java.text.DecimalFormat df4

df2

public java.text.DecimalFormat df2

df0

public java.text.DecimalFormat df0

IDMap

public java.util.TreeMap IDMap

itsIDs

public java.lang.Object[] itsIDs

frequencies

public int[] frequencies
Constructor Detail

Descriptives

public Descriptives()
empty private constructor ensures that the only objects of this type are the elements enumerated above

Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
clone the object

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

zeroDescriptives

public void zeroDescriptives()
sets sums for Capture descriptives to zeros


setLabel

public void setLabel(java.lang.String theLabel)
sets a label for the descriptives as a tag in reporting


listBasics

public void listBasics()
reports the current descriptives for the variable


list

public void list()
          throws java.lang.Exception
reports the appropriate descriptives for the variable

Throws:
java.lang.Exception

list

public void list(java.lang.Double hypValue)
          throws java.lang.Exception
reports the appropriate descriptives for comparing the variable to an external value

Parameters:
hypValue - compare to this value
Throws:
java.lang.Exception

listIDs

public void listIDs()
             throws java.lang.Exception
lists the frequencies for all instances of the variable using the currently selected set of rows

Throws:
java.lang.Exception

listIDs

public void listIDs(int maxInstances)
             throws java.lang.Exception
lists the frequencies for different instances of the variable using the currently selected set of rows up to the specified number of maxInstances

Parameters:
maxInstances - report frequencies for that many instances
Throws:
java.lang.Exception

listSigStars

public java.lang.String listSigStars(double p)
adds stars to indicate levels of significance

Parameters:
p - the p value