Skip to contents

Computed as: sqrt(1/2 * sum((sqrt(x) - sqrt(y))^2)). Cannot handle NA values.

Usage

distance_hellinger_cpp(x, y)

Arguments

x

(required, numeric vector).

y

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

Value

numeric

Examples

distance_hellinger_cpp(x = runif(100), y = runif(100))
#> [1] 2.429643