12345678910111213141516171819202122 |
- #!/usr/bin/env python3
- # -*- coding: utf-8 -*-
- from draugr.metrics import MetricAggregator
- __author__ = "Christian Heider Nielsen"
- __doc__ = r"""
- """
- def test_a():
- signals = MetricAggregator(keep_measure_history=False)
- for i in range(10):
- signals.append(i)
- print(signals)
- print(signals.measures)
- print(signals.variance)
- print(signals.calc_moving_average())
- print(signals.max)
- print(signals.min)
|