sed_eval.util.event_roll.match_event_roll_lengths¶
-
sed_eval.util.event_roll.
match_event_roll_lengths
(event_roll_a, event_roll_b, length=None)[source]¶ Fix the length of two event rolls
Parameters: event_roll_a: np.ndarray, shape=(m1,k)
Event roll A
event_roll_b: np.ndarray, shape=(m2,k)
Event roll B
length: int, optional
Length of the event roll, if none given, shorter event roll is padded to match longer one.
Returns: event_roll_a: np.ndarray, shape=(max(m1,m2),k)
Padded event roll A
event_roll_b: np.ndarray, shape=(max(m1,m2),k)
Padded event roll B