MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / plot_CumulativeRTECurve

Function plot_CumulativeRTECurve

Utility/Plot/PlotTraj.py:111–121  ·  view source on GitHub ↗
(ax: Axes, ref_traj: PlotableMotions, est_traj: PlotableMotions, axis: Literal[0, 1, 2] | None)

Source from the content-addressed store, hash-verified

109
110@IgnoreException
111def 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)

Callers 1

AnalyzeRTE_cdfFunction · 0.85

Calls 1

translationMethod · 0.45

Tested by

no test coverage detected