Least-squares approximation of a space distribution for a given covariance and latent sub-space