serviceping.serviceping module
ServicePing Utility functioins
-
class
serviceping.serviceping.StatsList(values=None)[source]
Bases: object
A list object that can do statistics on the values
-
append(value)[source]
Append a value to the stats list
- Parameters
value (float) – The value to add
-
count = 0
-
mean()[source]
Calculate the mean of the elements
- Returns
The mean of the list elements
- Return type
float
-
new_m = 0
-
new_s = 0
-
old_m = 0
-
old_s = 0
-
reset()[source]
Reset the counter
-
standard_deviation()[source]
Calculate the standard deviation of the elements
- Returns
The standard deviation of the list elements
- Return type
float
-
variance()[source]
Calculate the variance of the elements
- Returns
The variance of the list elements
- Return type
float
-
serviceping.serviceping.calc_deviation(values, average)[source]
Calculate the standard deviation of a list of values
@param values: list(float)
@param average:
@return:
-
serviceping.serviceping.calc_deviation1(values, average)[source]
Calculate the standard deviation of a list of values
@param values: list(float)
@param average:
@return: