Root Mean Square Error¶
- class RootMeanSquareError(transmitting_radar, receiving_radar, radar_channel)[source]¶
Bases:
RadarEvaluator
Root mean square error of estimated points to ground truth.
Root mean square error (RMSE) is a widely used metric for evaluating the performance of a radar detector. It estimates the average distance between the estimated and the ground truth position of a target.
A minimal example within the context of a
Simulation
evaluating the probability of detection for a single radar target illuminated by anFMCW
radar would be:1from hermespy.core import dB 2from hermespy.radar import Radar, FMCW, MaxDetector, RootMeanSquareError 3from hermespy.simulation import Simulation 4from hermespy.channel import SingleTargetRadarChannel 5 6# Create a new simulated scenario featuring a single device 7simulation = Simulation(num_samples=1000) 8device = simulation.new_device(carrier_frequency=60e9) 9 10# Configure the device to transmit and reveive radar waveforms 11radar = Radar(device=device) 12radar.waveform = FMCW() 13radar.detector = MaxDetector() 14 15# Create a new radar channel with a single illuminated target 16target = SingleTargetRadarChannel((1, radar.max_range), 1., attenuate=False) 17simulation.scenario.set_channel(device, device, target) 18 19# Create a new detection probability evaluator 20simulation.add_evaluator(RootMeanSquareError(radar, radar, target)) 21 22# Sweep over the target's SNR during the simulation 23simulation.new_dimension('noise_level', dB(0, -5, -10, -20, -30), device) 24 25# Run the simulation 26result = simulation.run() 27result.plot()
- Parameters:
receiving_radar (Radar) – Radar under test.
radar_channel (RadarChannelBase) – Radar channel modeling a desired target.
- Raises:
ValueError – If the receiving radar is not an operator of the radar_channel receiver.
- evaluate()[source]¶
Evaluate the state of an investigated object.
Implements the process of extracting an arbitrary performance indicator, represented by the returned
Artifact
\(X_m\).Returns: Artifact \(X_m\) resulting from the evaluation.
- Return type:
- generate_result(grid, artifacts)[source]¶
Generates an evaluation result from the artifacts collected over the whole simulation grid.
- Parameters:
grid (Sequence[GridDimension]) – The Simulation grid.
artifacts (np.ndarray) – Numpy object array whose dimensions represent grid dimensions.
- Return type:
- Returns:
The evaluation result.
- class RootMeanSquareEvaluation(pcl, ground_truth)[source]¶
Bases:
Evaluation
[ScatterVisualization
]Result of a single root mean squre evaluation.
- class RootMeanSquareArtifact(num_errors, cummulation)[source]¶
Bases:
Artifact
Artifact of a root mean square evaluation
- Parameters:
- class RootMeanSquareErrorResult(grid, scalar_results, evaluator, plot_surface=True)[source]¶
Bases:
ScalarEvaluationResult
Result of a root mean square error evaluation.
- Parameters:
grid (Sequence[GridDimension]) – Simulation grid.
scalar_results (np.ndarray) – Scalar results generated from collecting samples over the simulation grid.
evaluator (Evaluator) – The evaluator generating the results.
plot_surface (bool, optional) – Enable surface plotting for two-dimensional grids. Enabled by default.