diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-20 08:50:10 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-05-20 08:50:10 +0200 |
commit | 9db8eaa6a3d6e92cc2253625f55c6768727b79c4 (patch) | |
tree | 9cda5b6459933d4b1d67cd55dc449bbb0a7a1dc0 | |
parent | b4436b06e7979d4b4a5a8363f0e8fc51d705333b (diff) |
--histogram: Add power histogram for running average
-rwxr-xr-x | bin/msp430-etv | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/msp430-etv b/bin/msp430-etv index 1f9ecea..9ed7c97 100755 --- a/bin/msp430-etv +++ b/bin/msp430-etv @@ -390,17 +390,26 @@ if __name__ == "__main__": if "histogram" in opt: bin_count = int(opt["histogram"]) + plt.title("EnergyTrace Data Analysis") plt.xlabel("Reported Energy per Measurement Interval [J]") plt.ylabel("Count") plt.hist((data[1:, 3] - data[:-1, 3]) * 1e-9, bins=bin_count) plt.show() + plt.title("EnergyTrace Data Analysis") plt.xlabel("Measurement Interval Duration [s]") plt.ylabel("Count") plt.hist((data[1:, 0] - data[:-1, 0]) * 1e-6, bins=bin_count) plt.show() + plt.title("EnergyTrace Data Analysis") plt.xlabel("Mean Power per Measurement Interval [W]") plt.ylabel("Count") plt.hist(power_from_energy, bins=bin_count) plt.show() + + plt.title("Postprocessing via Running average (window size=10)") + plt.xlabel("Mean Power per Measurement Interval [W]") + plt.ylabel("Count") + plt.hist(mean_power, bins=bin_count) + plt.show() |