JMSLTM Numerical Library 4.0

com.imsl.stat
Class KaplanMeierECDF

java.lang.Object
  extended bycom.imsl.stat.KaplanMeierECDF
All Implemented Interfaces:
Cloneable, Serializable

public class KaplanMeierECDF
extends Object
implements Serializable, Cloneable

Computes the Kaplan-Meier reliability function estimates or the CDF based on failure data that may be multi-censored.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
KaplanMeierECDF(double[] y)
          Constructor for ARMA.
 
Method Summary
static void compute()
          Computes the empirical CDF
static double[] getCDF()
          Retrieve CDF values up to, but not including the time values in x
static int getNTimes()
          Retrieves the number of points in the empirical CDF
static double[] getTimes()
          Retrieves the time values where the step function CDF jumps to a greater value.
static void setCensor(int[] censor)
          Set flags to note right-censoring
static void setFrequency(int[] freq)
          Sets the frequency for each entry in y
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

KaplanMeierECDF

public KaplanMeierECDF(double[] y)
Constructor for ARMA.

Parameters:
y - a double array containing the failure times.
Method Detail

compute

public static void compute()
Computes the empirical CDF


getCDF

public static double[] getCDF()
Retrieve CDF values up to, but not including the time values in x

Returns:
a double array of cdf values.

getNTimes

public static int getNTimes()
Retrieves the number of points in the empirical CDF

Returns:
an int containing the number of points in the empirical CDF.

getTimes

public static double[] getTimes()
Retrieves the time values where the step function CDF jumps to a greater value. this array has right-censored values of y removed.


setCensor

public static void setCensor(int[] censor)
Set flags to note right-censoring

Parameters:
censor - an int array of 0 or 1 flags to note right-censoring 0 = continue to use datum 1 = remove datum no data is right-censored if not present.
Throws:
IllegalArgumentException - is thrown if censor.length, y.length are not consistent.

setFrequency

public static void setFrequency(int[] freq)
Sets the frequency for each entry in y

Parameters:
freq - a double array containing the repeat count for each entry in y.
Throws:
IllegalArgumentException - is thrown if freq.length, y.length are not consistent.

JMSLTM Numerical Library 4.0

Copyright 1970-2006 Visual Numerics, Inc.
Built June 1 2006.