locator
Class CompoundPdf

java.lang.Object
  extended bypdf.PDF
      extended bylocator.CompoundPdf

public class CompoundPdf
extends PDF

A compound PDF over some PFDs. The formula is: $ \overline{p(x)} = frac{\prod_{i=1}^{n}p_i(x)}{\sum_x\sum_y\sum_z \prod^{n}_{i=1} p_i(x)}$ The implementation is not efficient.


Field Summary
 
Fields inherited from class pdf.PDF
area
 
Constructor Summary
CompoundPdf(java.util.Vector pdfs)
          The constructor.
 
Method Summary
 Cartesian getPointOfMaxProbability()
           
 Probability getProbability(Cartesian coordinates)
           
 
Methods inherited from class pdf.PDF
checkArea, getArea, print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundPdf

public CompoundPdf(java.util.Vector pdfs)
The constructor.

Parameters:
pdfs - vector of PDF objects
Method Detail

getProbability

public Probability getProbability(Cartesian coordinates)
                           throws AreaException
Specified by:
getProbability in class PDF
Returns:
the compound probability for the given point
Throws:
AreaException

getPointOfMaxProbability

public Cartesian getPointOfMaxProbability()
Returns:
point of maximum probability in Cartesian coordinates