Ewens Model Class

class ecolopy_dev.models.ewens_model.EwensModel(community, **kwargs)[source]
likelihood(theta)[source]

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

Parameters:theta – value of theta
Returns:likelihood
optimize()[source]

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

random_community(inds=None, theta=None)[source]

generates random distribution according to J and theta

Parameters:
  • inds – number of individuals in community (J)
  • theta – corresponding to the model
Returns:

distribution of abundance (list)