Projection documentationΒΆ

Welcome to documentation for Projection!

Projection provides a small function that computes the stereographic projection of a point cloud in \({R^N}\) to a point cloud in \({R^(N-1)}\):

\[P(x, y, z, ..., t) \Rightarrow P(x', y', z', ...) \text{ where } x' = x/(1-t), \text{ } y' = y/(1-t), \text{ } z'=z/(1-t), \text{ } ...\]

Example:

from projection import stereographic_projection
import numpy as np

print(stereographic_projection(np.random.rand(1,4)))
# array([[ 0.14022471,  0.96360618,  0.94909878]])