Module to transform a vector at a specified cosine distance from the first
pip install cosine_transform
>>> import cosine_transform
>>> import numpy
>>> from scipy.spatial.distance import cosine
>>> v = numpy.random.normal(size=1000)
>>> d = numpy.random.uniform(0, 2)
>>> u = cosine_transform.transform_to_distance(v, d)
>>> print(cosine(u, v), d)
(0.80948920647043165, 0.809489206470432)
>>> s = numpy.random.uniform(-1, 1)
>>> u = cosine_transform.transform_to_similarity(v, s)
>>> print(1 - cosine(u, v), s)
(0.94985416984017323, 0.9498541698401737)