Lognormal Model Class

class ecolopy_dev.models.lognormal_model.LognormalModel(community, **kwargs)[source]
likelihood(theta)[source]

get likelihood value of Ewens according to Parthy/Tetame (Jabot 2008)

Parameters:theta – value of theta
Returns:likelihood
mu

mu

optimize()[source]

Main function to optimize theta using theta likelihood function, according to Ewens model.

random_community(inds=None, mu=None, sd=None)[source]

generates random lognormal distribution

Parameters:
  • inds – number of individuals in community (J)
  • sd – usually standard deviation of the distribution of abundances
  • mu – usually mean of the distribution of abundances
Returns:

distribution of abundance (list)

sd

standard deviation