endpoints/bradykinesia_endpoints.py
def compute_aggregate_percentage_of_no_hand_movement(hand_movement_predictions):
    '''
    Compute aggregate value of percentage of no hand movement.
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Percentage of no hand movement
    '''
    return (hand_movement_predictions.count(0)/float(len(hand_movement_predictions)))*100.

    Compute aggregate value of percentage of no hand movement.
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Percentage of no hand movement
    
Compute aggregate value of percentage of no hand movement.
Compute aggregate value of percentage of no hand movement .
def compute_aggregate_percentage_of_no_hand_movement(hand_movement_predictions):
    return (hand_movement_predictions.count(0)/float(len(hand_movement_predictions)))*100.
def compute_aggregate_percentage_of_no_hand_movement ( hand_movement_predictions ) : return ( hand_movement_predictions . count ( 0 ) / float ( len ( hand_movement_predictions ) ) ) * 100.
Compute aggregate value of percentage of no hand movement.
Compute aggregate value of percentage of no hand movement .
'''
    Compute aggregate value of percentage of no hand movement.
    :param hand_movement_predictions: Predicted hand movement - binary predictions (1 = hand movement, 0 = no hand movement).
    :return: Percentage of no hand movement
    '''
Percentage of no hand movement
Percentage of no hand movement
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 ) .