(ax: Axes, ref_traj: PlotableMotions, est_traj: PlotableMotions, axis: Literal[0, 1, 2] | None)
| 109 | |
| 110 | @IgnoreException |
| 111 | def plot_CumulativeRTECurve(ax: Axes, ref_traj: PlotableMotions, est_traj: PlotableMotions, axis: Literal[0, 1, 2] | None) -> Line2D: |
| 112 | ref_motions = ref_traj.data.motions |
| 113 | est_motions = est_traj.data.motions |
| 114 | err_motions = ref_motions @ est_motions.Inv() |
| 115 | |
| 116 | if axis is None: |
| 117 | err_trans = err_motions.translation().norm(dim=1).numpy() |
| 118 | else: |
| 119 | err_trans = err_motions.translation()[..., axis].numpy() |
| 120 | |
| 121 | return ax.ecdf(err_trans, label=est_traj.name, **est_traj.plot_kwargs) |
no test coverage detected