def aggregate_f(
    loc_fscore, length_acc, vessel_fscore, fishing_fscore, loc_fscore_shore
):
    """
    Compute aggregate metric for xView3 scoring


    Args:
        loc_fscore (float): F1 score for overall maritime object detection
        length_acc (float): Aggregate percent error for vessel length estimation
        vessel_fscore (float): F1 score for vessel vs. non-vessel task
        fishing_fscore (float): F1 score for fishing vessel vs. non-fishing vessel task
        loc_fscore_shore (float): F1 score for close-to-shore maritime object detection

    Returns:
        aggregate (float): aggregate metric for xView3 scoring
    """

    # Note: should be between zero and one, and score should be heavily weighted on
    # overall maritime object detection!
    aggregate = (
        loc_fscore
        * (1 + length_acc + vessel_fscore + fishing_fscore + loc_fscore_shore)
        / 5
    )

    return aggregate