org.apache.commons.math.distribution
Interface ZipfDistribution

All Superinterfaces:
DiscreteDistribution, Distribution, IntegerDistribution
All Known Implementing Classes:
ZipfDistributionImpl

public interface ZipfDistribution
extends IntegerDistribution

The Zipf (or zeta) Distribution.

References:

Version:
$Id: ZipfDistribution.java 1131229 2011-06-03 20:49:25Z luc $

Method Summary
 double getExponent()
          Get the exponent characterising the distribution.
 int getNumberOfElements()
          Get the number of elements (e.g. corpus size) for the distribution.
 
Methods inherited from interface org.apache.commons.math.distribution.IntegerDistribution
cumulativeProbability, cumulativeProbability, inverseCumulativeProbability, probability, reseedRandomGenerator, sample, sample
 
Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution
probability
 
Methods inherited from interface org.apache.commons.math.distribution.Distribution
cumulativeProbability, cumulativeProbability, getNumericalMean, getNumericalVariance, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive
 

Method Detail

getNumberOfElements

int getNumberOfElements()
Get the number of elements (e.g. corpus size) for the distribution.

Returns:
the number of elements

getExponent

double getExponent()
Get the exponent characterising the distribution.

Returns:
the exponent


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.