epfl.pdf
Class NormalPdf

java.lang.Object
  |
  +--epfl.pdf.AbstractPdf
        |
        +--epfl.pdf.NormalPdf
All Implemented Interfaces:
Pdf, VectorReader
Direct Known Subclasses:
NormalKernelPdf.NormalKernel

public class NormalPdf
extends AbstractPdf

The normal probability density function


Field Summary
 double mu
           
 double sigma
           
 
Constructor Summary
NormalPdf(double mu, double sigma)
          Creates a new Normal pdf without stream connection
NormalPdf(VectorReader in, double mu, double sigma)
          Creates a new Normal pdf
 
Method Summary
 double pdf(double x)
          Probability density function
 
Methods inherited from class epfl.pdf.AbstractPdf
close, period, plot, read, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mu

public double mu

sigma

public double sigma
Constructor Detail

NormalPdf

public NormalPdf(VectorReader in,
                 double mu,
                 double sigma)
Creates a new Normal pdf
Parameters:
in - the underlying vector reader

NormalPdf

public NormalPdf(double mu,
                 double sigma)
Creates a new Normal pdf without stream connection
Method Detail

pdf

public double pdf(double x)
Probability density function
Overrides:
pdf in class AbstractPdf