Module ImportFrom alias alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body For NameStore Call NameLoad Num Num body AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num AugAssignAdd AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr For NameStore ListLoad Num Num Num Num Num Num Num Num Num Num body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A __future__ division absolute_import N/A mock unittest2 TestCase yunomi.compat xrange yunomi.stats.ewma EWMA EWMATests N/A TestCase N/A elapse_minute N/A N/A self time_mock N/A N/A N/A i N/A xrange 0 12 N/A N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A test_one_minute_EWMA_five_sec_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA one_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.22072766 0.08120117 0.02987224 0.01098938 0.00404277 0.00148725 0.00054713 0.00020128 7.405e-05 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A N/A self elapse_minute time_mock N/A N/A N/A mock patch yunomi.stats.ewma.time test_five_minute_EWMA_five_sec_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA five_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.49123845 0.40219203 0.32928698 0.26959738 0.22072766 0.18071653 0.14795818 0.12113791 0.09917933 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A N/A self elapse_minute time_mock N/A N/A N/A mock patch yunomi.stats.ewma.time test_fifteen_minute_EWMA_five_sec_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA fifteen_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.56130419 0.52510399 0.49123845 0.459557 0.42991879 0.40219203 0.37625345 0.35198773 0.32928698 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A N/A self elapse_minute time_mock N/A N/A N/A mock patch yunomi.stats.ewma.time test_one_minute_EWMA_one_minute_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA one_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.22072766 0.08120117 0.02987224 0.01098938 0.00404277 0.00148725 0.00054713 0.00020128 7.405e-05 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A time_mock return_value 60 N/A N/A N/A mock patch yunomi.stats.ewma.time test_five_minute_EWMA_one_minute_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA five_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.49123845 0.40219203 0.32928698 0.26959738 0.22072766 0.18071653 0.14795818 0.12113791 0.09917933 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A time_mock return_value 60 N/A N/A N/A mock patch yunomi.stats.ewma.time test_fifteen_minute_EWMA_one_minute_tick N/A N/A self time_mock N/A N/A N/A N/A time_mock return_value 0.0 N/A N/A self ewma N/A N/A EWMA fifteen_minute_EWMA N/A N/A N/A N/A self ewma update 3 N/A N/A time_mock return_value 5 N/A N/A N/A N/A self ewma tick N/A expected_rate N/A 0.6 0.56130419 0.52510399 0.49123845 0.459557 0.42991879 0.40219203 0.37625345 0.35198773 0.32928698 N/A N/A N/A N/A self assertAlmostEqual N/A N/A N/A self ewma get_rate expected_rate N/A N/A time_mock return_value 60 N/A N/A N/A mock patch yunomi.stats.ewma.time N/A