The lowlevel function for computing the cosine_dist distance.
cosine_dist(P, Q, testNA)
a numeric vector storing the first distribution.
a numeric vector storing the second distribution.
a logical value indicating whether or not distributions shall be checked for NA
values.