sum#

ParamDict1D.sum()#

Calculate the sum of parameter values.

Returns:
int or float
Raises:
StatisticsError

If the ParamDict is empty.

Examples

>>> inventory = ParamDict1D({'chair': 100, 'table': 10, 'shelf': 5, 'sofa': 3})
>>> inventory.sum()
118