throw exception if N,T out of bounds. explicitly compute mu,sigma in confidence so that order does not matter