Evaluators¶

- class ReceivePowerEvaluator(target, plot_scale='log')[source]¶
Bases:
EvaluatorEstimates the signal power received receivers.
- Parameters:
- 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 (
ndarray) – Numpy object array whose dimensions represent grid dimensions.
- Return type:
Returns: The evaluation result.
- class TransmitPowerEvaluator(target, plot_scale='log')[source]¶
Bases:
EvaluatorEstimates the signal power transmitted by transmitters.
- Parameters:
target (Transmitter) – The device or receiver to measure the received power of.
plot_scale (str) – The scale of the plot. Can be
'linear'or'log'.
- 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 (
ndarray) – Numpy object array whose dimensions represent grid dimensions.
- Return type:
Returns: The evaluation result.
- class PowerEvaluation(power)[source]¶
Bases:
Evaluation[StemVisualization]The evaluation of a received power evaluation.
Generated by evaluating power evaluators.
- Parameters:
power (
ndarray) – The received power in Watts for each antenna stream.
- class PowerArtifact(power)[source]¶
Bases:
ArtifactThe artifact of a received power evaluation.
Generated by the
artifactofPowerEvaluation.- Parameters:
power (
ndarray) – The received power in Watts for each antenna stream.
- class PowerResult(average_powers, grid, evaluator, plot_surface=False)[source]¶
Bases:
ScalarEvaluationResultThe result of a received power evaluation.
Final result of power evaluations after all evaluation artifacts have been collected.
- Parameters:
average_powers (numpy.ndarray) – The received power in Watts for each antenna stream.
grid (Sequence[GridDimension]) – The grid dimensions of the evaluation.
evaluator (Evaluator) – The evaluator that generated this result.
plot_surface (bool) – Whether two-dimensional evaluations should be plotted as surface plots.