StatisticsUtility¶
Namespace:
SideXP.Core
Miscellaneous utility functions for calculating statistics.
Methods¶
Sum(IEnumerable<float>)¶
Calculates the sum from given values.
Parameters
values: The values to sum.
Returns
Returns the calculated value.
Sum(IEnumerable<int>)¶
Calculates the sum from given values.
Parameters
values: The values to sum.
Returns
Returns the calculated value.
Average(IEnumerable<float>)¶
Calculates the average value from given ones.
Parameters
values: The values of which to calculate the average.
Returns
Returns the calculated value, or 0 if the sequence is empty.
Average(IEnumerable<int>)¶
Calculates the average value from given ones.
Parameters
values: The values of which to calculate the average.
Returns
Returns the calculated value, or 0 if the sequence is empty.