Patterns in static

Apophenia

apop_zipf.c File Reference

Variables


Detailed Description

The Zipf distribution.

$Z(a) = {1\over \zeta(a) * i^a} $


Variable Documentation

The Zipf distribution. Wikipedia has notes on the Zipf distribution.

Ignores the matrix structure of the input data, so send in a 1 x N, an N x 1, or an N x M.

apop_zipf.estimate() is an MLE, so feed it appropriate apop_mle_settings. $Z(a) = {1\over \zeta(a) * i^a} $

$lnZ(a) = -(\log(\zeta(a)) + a \log(i)) $

$dlnZ(a)/da = -{a \zeta(a)\over\log(\zeta(a-1))} - \log(i) $

To specify that you have frequency or ranking data, use

Apop_settings_add_group(your_model, apop_rank, NULL);

SourceForge.net Logo

Autogenerated by doxygen on 23 Nov 2009.