This file holds various statistical functions and an interface to the activity log for getting the input data.
(C) 2008 The Source Mage Team
Set of functions used by gaze for time calculations
casting time(s)
Computes all the casting times of the passed spell by inspecting the activity log.
cast time of spell in seconds
Display the time in seconds a spell took to compile and install.
pretty-printed cast times of spell
Display the time in seconds a spell took to compile and install. All known algorithms are used (see compute_cast_time). Mean estimates also show the estimation error.
numbers separated by newlines
mean and its error
Computes the mean of the passed arguments and its standard error
numbers separated by newlines
mean value
Computes the weighted mean of the passed and some more arguments. WARNING: only usable for cast times!
numbers separated by newlines
median value
Computes the median of the passed arguments
total error
Computes the combined error of independent variables
time (DD:HH:MM or HH:MM or MM or "less than a minute")
Converts a time in seconds and the estimation error (if available) into a human readable format
time (DD:HH:MM or HH:MM or MM or "less than a minute")
Converts a time in seconds into a human readable format.
time +/- error (see pretty_print_time)
Converts a time estimation error into a human readable format. If the error is very small or 0, it isn't shown.