Cumulative Discrete Function Definition