From 18afba9273d1fa2cce2ed66f8c5f102e59fa962f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 29 Jan 2018 13:29:42 +0100 Subject: add parameter look-up table models --- bin/analyze-archive.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin/analyze-archive.py') diff --git a/bin/analyze-archive.py b/bin/analyze-archive.py index 032c7ca..cf3449a 100755 --- a/bin/analyze-archive.py +++ b/bin/analyze-archive.py @@ -9,9 +9,9 @@ if __name__ == '__main__': preprocessed_data = raw_data.get_preprocessed_data() model = EnergyModel(preprocessed_data) - static_model = model.get_static() print('--- simple static model ---') + static_model = model.get_static() for state in model.states(): print('{:10s}: {:.0f} µW'.format(state, static_model(state, 'power'))) for trans in model.transitions(): @@ -20,6 +20,10 @@ if __name__ == '__main__': static_model(trans, 'rel_energy_prev'), static_model(trans, 'rel_energy_next'))) print('{:10s}: {:.0f} µs'.format(trans, static_model(trans, 'duration'))) + model.assess(static_model) + + print('--- LUT ---') + lut_model = model.get_param_lut() + model.assess(lut_model) - model.assess(model.get_static()) sys.exit(0) -- cgit v1.2.3