Pianka's niche-overlap index
pianka_index.Rd
Computes Pianka's symmetric index of overlap between two non-negative activity profiles \(p\) and \(q\): $$\frac{\sum_i p_i q_i}{\sqrt{\left(\sum_i p_i^2\right)\left(\sum_i q_i^2\right)}}.$$
Arguments
- p
Numeric vector of non-negative values (counts or relative frequencies) for the first biological identity data 1 (e.g. activity, population size, etc) across ordered time bins.
- q
Numeric vector of non-negative values (same length as
p
) for the second biological identity (e.g. activity, population size, etc) across ordered time bins.