calculating the gaussians for features, needs to be checked with real data