calcP_n: Calculate Z (part of equation 6.4 of Harte 2011)
Description
This function is a used by get_probvals,
which calculates the Maximum Entropy (Harte
(2011)) discrete probability distribution of a number of
ordered states (e.g., faces of a 6-sided die) given the
mean of many rolls. Here, this is merely used so that a
single parameter can control the probability distribution
of small versus large descendant areas during
cladogenesis.
Usage
calcP_n(n, lambda1, Z)
Arguments
n
Value of the state (e.g., which of a number of
faces on a die, or number of different size classes of
geographic range).