Skip to contents

Computes the Bray-Curtis distance, suitable for species abundance data.

Usage

distance_bray_curtis_cpp(x, y)

Arguments

x

(required, numeric vector).

y

(required, numeric vector) of same length as x.

Value

numeric

Examples

distance_bray_curtis_cpp(x = runif(100), y = runif(100))
#> [1] 0.33584