Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

weighted_kulczynski_second

Weighted Kulczynski distance


Description

The quantitative version of the second Kulczynski index

Usage

weighted_kulczynski_second(x, y)

Arguments

x, y

Numeric vectors

Details

The quantitative version of the second Kulczynski index is defined as

d(x, y) = 1 - \frac{1}{2} ≤ft ( \frac{∑_i \min{(x_i, y_i)}}{∑_i x_i} + \frac{∑_i \min{(x_i, y_i)}}{∑_i y_i} \right ).

Relation of weighted_kulczynski_second() to other definitions:

  • Equivalent to vegdist() with method = "kulczynski".

  • Equivalent to structkulczynski in Mothur.

  • Equivalent to 1 - S_{18} in Legendre & Legendre.

Value

The weighted Kulczynski distance between x and y. The distance is undefined if the sum of x or the sum of y is zero, in which case we return NaN.


abdiv

Alpha and Beta Diversity Measures

v0.2.0
MIT + file LICENSE
Authors
Kyle Bittinger [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.