Calculate mean average power over splices using a splicing table
Calculate mean average power over splices using a splicing table
Randomly generates splices from a splicing table and calculates average power for each segment and splice. Calculates the mean average power over the random splices for each segment and period. Compares with the average power for the original splice.
column: name of data column on which to calculate average power.
sampling_type: either 'offset' or 'gap'.
rejection_list: list of splice objects that random splices must not overlap.
include_original: include the original splice in output? (Default is TRUE).
show_plot: show a plot? (Default is TRUE).
Returns
data.frame of splice segments and their average power.
Examples
r <- get_sample_recording()fv_list <- get_filtered_views(r, data_points ="Nose", n =41, p =3)jv <- get_joined_view(fv_list)d <- get_duration_annotation_data(r)splicing_tabla_solo_df <- splice_time(d, expr ="Tier == 'INTERACTION' & Comments == 'Mutual look and smile'")# Only do the first splice for sample datamean_ave_power_df <- ave_power_over_splices(jv, splicing_tabla_solo_df[1,], num_splices =10,column ='Nose_x_Central_Sitar', show_plot =TRUE)