powered by
Compute the Hellinger Distance
hellinger_distance(p, q)
An ordinal pattern distribution
A second ordinal pattern distribution to compare against p.
A vector of length 1.
This function returns a distance measure.
none
# NOT RUN { p = ordinal_pattern_distribution(rnorm(10000), ndemb = 5) q = ordinal_pattern_distribution(arima.sim(model=list(ar=0.9), n= 10000), ndemb = 5) hellinger_distance(p=p, q = q) # }
Run the code above in your browser using DataLab