Given lower and upper endpoints and the mean and standard deviation of a (non-truncated) normal distribution, compute the first and second moment of the truncated normal distribution. All inputs may be scalars or vectors.
truncnorm_mom(a, b, mu, sig)
a list containing the first moment m1
and the second moment m2
lower endpoint
upper endpoint
expected value of the non-truncated normal distribution
standard deviation of the non-truncated normal distribution