This should be done via Shoguns representation of the Gaussian distribution. Instantiating the class might be a bit too much here, but you could for example add a static method to CGaussianDistribution