bin_output¶
- bin_output(outputs, output_times, dt, wdw_start, wdw_end, downsample_factor=1)[source][source]¶
Function that puts outputs into bins
- Parameters:
outputs (
matrixof size"number of times the output was recorded"x “number)output" (of features in the) – each entry in the matrix is the value of the output feature
output_times (
a vectorof size"number of times the output was recorded") – each entry has the time the output was recordeddt (
number (any format)) – size of time binswdw_start (
number (any format)) – the start time for binning the outputswdw_end (
number (any format)) – the end time for binning the outputsdownsample_factor (
integer, optional, default1) – how much to downsample the outputs prior to binning larger values will increase speed, but decrease precision
- Returns:
outputs_binned (
matrixof size"number of time bins"x “number offeatures)in the output"– the average value of each output feature in every time bin