moments function

Moments of a Distribution