def compute_is_missed_prediction(forecasted_trajectories: NDArrayNumber, gt_trajectory: NDArrayNumber, miss_threshold_m: float=2.0) -> NDArrayBool:
    'Compute whether each of K predicted trajectories (for the same actor) missed by more than a distance threshold.\n\n    Args:\n        forecasted_trajectories: (K, N, 2) predicted trajectories, each N timestamps in length.\n        gt_trajectory: (N, 2) ground truth trajectory, miss will be evaluated against true position at index `N-1`.\n        miss_threshold_m: Minimum distance threshold for final displacement to be considered a miss.\n\n    Returns:\n        (K,) Bools indicating whether prediction missed by more than specified threshold.\n    '
    fde = compute_fde(forecasted_trajectories, gt_trajectory)
    is_missed_prediction = (fde > miss_threshold_m)
    return is_missed_prediction
Compute whether each of K predicted trajectories (for the same actor) missed by more than a distance threshold.

Args:
    forecasted_trajectories: (K, N, 2) predicted trajectories, each N timestamps in length.
    gt_trajectory: (N, 2) ground truth trajectory, miss will be evaluated against true position at index `N-1`.
    miss_threshold_m: Minimum distance threshold for final displacement to be considered a miss.

Returns:
    (K,) Bools indicating whether prediction missed by more than specified threshold.
def compute_is_missed_prediction(forecasted_trajectories: NDArrayNumber, gt_trajectory: NDArrayNumber, miss_threshold_m: float=2.0) -> NDArrayBool:
    'Compute whether each of K predicted trajectories (for the same actor) missed by more than a distance threshold.\n\n    Args:\n        forecasted_trajectories: (K, N, 2) predicted trajectories, each N timestamps in length.\n        gt_trajectory: (N, 2) ground truth trajectory, miss will be evaluated against true position at index `N-1`.\n        miss_threshold_m: Minimum distance threshold for final displacement to be considered a miss.\n\n    Returns:\n        (K,) Bools indicating whether prediction missed by more than specified threshold.\n    '
    fde = compute_fde(forecasted_trajectories, gt_trajectory)
    is_missed_prediction = (fde > miss_threshold_m)
    return is_missed_prediction