Started filling out c++ function to sample latent space intercepts