sdsu.algorithms.data
Class DiscreteProbability
java.lang.Object
|
+--sdsu.algorithms.data.ProbabilityDistribution
|
+--sdsu.algorithms.data.DiscreteProbability
- Direct Known Subclasses:
- Bernoulli, NoInverseDistribution, Poisson
- public abstract class DiscreteProbability
- extends ProbabilityDistribution
An abstract class defining an interface for probability distributions
on a discrete space.
This class and many of its subclasses are adapted from Smalltalk-80: The language
and Its Implementation, Goldberg & Robson, Addison-Wesley, 1983, chapter 21,
pages 417-438.
- Version:
- 1.0 10 June 1997
- Author:
- Roger Whitney (whitney@cs.sdsu.edu)
Method Summary |
java.util.Vector |
distribution(java.util.Vector sampleSpaceCollection)
Computes the density of each item in the vector. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DiscreteProbability
public DiscreteProbability()
distribution
public java.util.Vector distribution(java.util.Vector sampleSpaceCollection)
- Computes the density of each item in the vector.
Returns a vector of the densities.
- Overrides:
- distribution in class ProbabilityDistribution