Implementing TruncatedGaussianFactor.