A Double Recursion for Calculating Moments of the Truncated Normal Distribution and its Connection to Change Detection