endpoints/bradykinesia_endpoints.py
def compute_aggregate_length_of_no_hand_movement_bouts(hand_movement_predictions):
    '''
    Compute aggregate length of no hand movement bouts
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Average length of no hand movement bout lengths
    '''
    no_hand_movement_bouts, _ = calculate_hand_movement_bout_lengths(hand_movement_predictions)
    return np.mean(no_hand_movement_bouts)

    Compute aggregate length of no hand movement bouts
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Average length of no hand movement bout lengths
    
Compute aggregate length of no hand movement bouts
Compute aggregate length of no hand movement bouts
def compute_aggregate_length_of_no_hand_movement_bouts(hand_movement_predictions):
    no_hand_movement_bouts, _ = calculate_hand_movement_bout_lengths(hand_movement_predictions)
    return np.mean(no_hand_movement_bouts)
def compute_aggregate_length_of_no_hand_movement_bouts ( hand_movement_predictions ) : no_hand_movement_bouts , _ = calculate_hand_movement_bout_lengths ( hand_movement_predictions ) return np . mean ( no_hand_movement_bouts )
Compute aggregate length of no hand movement bouts
Compute aggregate length of no hand movement bouts
'''
    Compute aggregate length of no hand movement bouts
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Average length of no hand movement bout lengths
    '''
Average length of no hand movement bout lengths
Average length of no hand movement bout lengths
hand_movement_predictions
Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
Predicted hand movement - binary predictions ( 1 = hand movement 0 = no hand movement ) .