ostore.tapestry.patchwork
Class DiskPDF

java.lang.Object
  |
  +--ostore.tapestry.patchwork.DiskPDF
All Implemented Interfaces:
CDF, PDF
Direct Known Subclasses:
DayPDF, SecondPDF, WeekPDF

public class DiskPDF
extends Object
implements PDF, CDF

Specifies a CDF and a PDF in months


Field Summary
static int CDFarraySize
           
static double[] dCDFarray
           
static double[] dPDFarray
           
static int monthMillis
           
static int PDFarraySize
           
 
Constructor Summary
DiskPDF()
           
 
Method Summary
 double getCDFEntry(int n)
          return the nth entry of the cumulative distribution function
 int getCDFIncrement()
          Returns the number of milliseconds that need to pass in a node's life before using the next cdf entry
 int getCDFSize()
          Returns the size of the cumulative distribution function
 double getPDFEntry(int n)
          return the nth entry of the probability distribution function
 int getPDFIncrement()
          Returns the number of milliseconds that need to pass in a node's life before using the next pdf entry
 int getPDFSize()
          Returns the size of the probability distribution function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PDFarraySize

public static int PDFarraySize

CDFarraySize

public static int CDFarraySize

monthMillis

public static final int monthMillis

dPDFarray

public static double[] dPDFarray

dCDFarray

public static double[] dCDFarray
Constructor Detail

DiskPDF

public DiskPDF()
Method Detail

getPDFEntry

public double getPDFEntry(int n)
Description copied from interface: PDF
return the nth entry of the probability distribution function
Specified by:
getPDFEntry in interface PDF

getPDFSize

public int getPDFSize()
Description copied from interface: PDF
Returns the size of the probability distribution function
Specified by:
getPDFSize in interface PDF

getPDFIncrement

public int getPDFIncrement()
Description copied from interface: PDF
Returns the number of milliseconds that need to pass in a node's life before using the next pdf entry
Specified by:
getPDFIncrement in interface PDF

getCDFEntry

public double getCDFEntry(int n)
Description copied from interface: CDF
return the nth entry of the cumulative distribution function
Specified by:
getCDFEntry in interface CDF

getCDFSize

public int getCDFSize()
Description copied from interface: CDF
Returns the size of the cumulative distribution function
Specified by:
getCDFSize in interface CDF

getCDFIncrement

public int getCDFIncrement()
Description copied from interface: CDF
Returns the number of milliseconds that need to pass in a node's life before using the next cdf entry
Specified by:
getCDFIncrement in interface CDF