Skip to contents

Bounded power law cumulative probability density function

Usage

pparetocounts(x, xmin, xmax, lambda)

Arguments

x

body size value

xmin

xmin: the minimum body size of the sample or the minimum possible body size

xmax

xmax: the maximum body size of the sample or the maximum possible body size

lambda

vector of lambda (the power law exponent)

Value

a numeric vector of the probability of x given lambda, xmin, and xmax.

Examples

pparetocounts(x = 2, xmin = 1, xmax = 1000, lambda = -2)
#> [1] 0.4994995