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 (matrix of 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 vector of size "number of times the output was recorded") – each entry has the time the output was recorded

  • dt (number (any format)) – size of time bins

  • wdw_start (number (any format)) – the start time for binning the outputs

  • wdw_end (number (any format)) – the end time for binning the outputs

  • downsample_factor (integer, optional, default 1) – how much to downsample the outputs prior to binning larger values will increase speed, but decrease precision

Returns:

  • outputs_binned (matrix of size "number of time bins" x “number of features)

  • in the output" – the average value of each output feature in every time bin