using numpy method for euclidian dist, normalized histogram