Skip to content

Instantly share code, notes, and snippets.

View aracthon's full-sized avatar

Arac aracthon

  • Los Angeles
View GitHub Profile
@aracthon
aracthon / hellinger.py
Created March 25, 2017 21:48 — forked from larsmans/hellinger.py
Hellinger distance for discrete probability distributions in Python
"""
Three ways of computing the Hellinger distance between two discrete
probability distributions using NumPy and SciPy.
"""
import numpy as np
from scipy.linalg import norm
from scipy.spatial.distance import euclidean