ostore.tapestry.patchwork
Class WeekPDF

java.lang.Object
  |
  +--ostore.tapestry.patchwork.DiskPDF
        |
        +--ostore.tapestry.patchwork.WeekPDF
All Implemented Interfaces:
CDF, PDF

public class WeekPDF
extends DiskPDF

Specifies a CDF in days


Field Summary
static int cdf_size
           
static int factor
          How much to divide the month PDF by
static int pdf_size
           
 
Fields inherited from class ostore.tapestry.patchwork.DiskPDF
CDFarraySize, dCDFarray, dPDFarray, monthMillis, PDFarraySize
 
Constructor Summary
WeekPDF()
           
 
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

factor

public static final int factor
How much to divide the month PDF by

pdf_size

public static final int pdf_size

cdf_size

public static final int cdf_size
Constructor Detail

WeekPDF

public WeekPDF()
Method Detail

getPDFEntry

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

getPDFSize

public int getPDFSize()
Description copied from interface: PDF
Returns the size of the probability distribution function
Overrides:
getPDFSize in class DiskPDF

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
Overrides:
getPDFIncrement in class DiskPDF

getCDFEntry

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

getCDFSize

public int getCDFSize()
Description copied from interface: CDF
Returns the size of the cumulative distribution function
Overrides:
getCDFSize in class DiskPDF

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
Overrides:
getCDFIncrement in class DiskPDF