de.lmu.ifi.dbs.elki.data.synthetic.bymodel.distribution
Interface Distribution

All Known Implementing Classes:
GammaDistribution, NormalDistribution, UniformDistribution

public interface Distribution

Interface for a simple distribution generator with a PDF, i.e. it can also compute a density


Method Summary
 double explain(double val)
          Return the density of an existing value
 double generate()
          Generate a new random value
 String toString()
          Describe the generator
 

Method Detail

generate

double generate()
Generate a new random value

Returns:
new generated value

explain

double explain(double val)
Return the density of an existing value

Parameters:
val - existing value
Returns:
distribution density

toString

String toString()
Describe the generator

Overrides:
toString in class Object
Returns:
description

Release 0.4.0 (2011-09-20_1324)