def acc_plot_fn(ax1, ax2, x, freq): s = np.square(x[:, 2:]) mag = np.sum(s, axis=1) mag = np.column_stack((x[:, 1], mag)) plot_time_domain(ax1, mag) plot_freq_domain(ax2, mag[:, 1], freq)
def output(x): if args["export_csv"]: np.savetxt(args["acc_csv"], x, delimiter=',') if int(args["type"][0]) == 0: s = np.square(x[:, 1:]) mag = np.sum(s, axis=1) mag = np.column_stack((x[:, 0], mag)) plot_time_domain(ax1, mag) plot_freq_domain(ax2, mag[:, 1], ACC_FS)
def output(x): if args["export_csv"]: np.savetxt(args["ppg_csv"], x, delimiter=',') if int(args["type"][0]) == 12: plot_time_domain(ax1, x) plot_freq_domain(ax2, x[:, 1], PPG_FS_512)
def default_plot_fn(ax1, ax2, x, freq): plot_time_domain(ax1, x[:, 1:]) plot_freq_domain(ax2, x[:, 2], freq)