def update_ref(output_type, abs_diff, spikes, ref, thresh, frame_time_ms, \ num_spikes=1, history_weight=1., log2_table=None): if output_type == OUTPUT_RATE: return gs.update_reference_rate(abs_diff, spikes, ref, thresh, frame_time_ms, history_weight) elif output_type == OUTPUT_TIME_BIN_THR: return gs.update_reference_time_binary_thresh( abs_diff, spikes, ref, thresh, frame_time_ms, num_spikes=num_spikes, history_weight=history_weight, log2_table=log2_table) else: return gs.update_reference_time_thresh(abs_diff, spikes, ref, thresh, frame_time_ms, history_weight)
def update_ref(output_type, abs_diff, spikes, ref, thresh, frame_time_ms, \ num_spikes=1, history_weight=1., log2_table=None): if output_type == OUTPUT_RATE: return gs.update_reference_rate(abs_diff, spikes, ref, thresh, frame_time_ms, history_weight) elif output_type == OUTPUT_TIME_BIN_THR: return gs.update_reference_time_binary_thresh(abs_diff, spikes, ref, thresh, frame_time_ms, num_spikes=num_spikes, history_weight=history_weight, log2_table=log2_table) else: return gs.update_reference_time_thresh(abs_diff, spikes, ref, thresh, frame_time_ms, history_weight)