Added getAvgValue() to time series.
Added a new time series that does a weighted average of all values instead of averaging the slots.