R/logZ.MM.R

Defines functions logZ.MM

logZ.MM=function(phi,n){sum(log(1-exp(-c(2:n)*phi)))-((n-1)*log(1-exp(-phi)))} # log normalizing constant in the Mallows model.
# phi is the disperse parameter
# n is the number of entities

Try the PAMA package in your browser

Any scripts or data that you put into this service are public.

PAMA documentation built on May 6, 2021, 5:09 p.m.