Example #1
0
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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
def default_plot_fn(ax1, ax2, x, freq):
    plot_time_domain(ax1, x[:, 1:])
    plot_freq_domain(ax2, x[:, 2], freq)