Home
last modified time | relevance | path

Searched refs:interval_sum (Results 1 – 3 of 3) sorted by relevance

/external/bart/tests/
Dtest_common_utils.py40 self.assertEqual(Utils.interval_sum(series, 1, step="post"), 8)
41 self.assertEqual(Utils.interval_sum(series, 1, step="pre"), 7)
47 self.assertEqual(Utils.interval_sum(series, 1, step="post"), 2)
48 self.assertEqual(Utils.interval_sum(series, 1, step="pre"), 1)
54 self.assertEqual(Utils.interval_sum(series, 1, step="post"), 1)
55 self.assertEqual(Utils.interval_sum(series, 1, step="pre"), 2)
59 self.assertEqual(Utils.interval_sum(series), 4)
/external/bart/bart/common/
Dsignal.py51 from bart.common.Utils import area_under_curve, interval_sum
245 duration = interval_sum(mask[pivot_val], step=step) / duration
DUtils.py168 def interval_sum(series, value=None, step="post"): function