kaira.benchmarks.BenchmarkVisualizer

Inheritance diagram for BenchmarkVisualizer
- class kaira.benchmarks.BenchmarkVisualizer(figsize: tuple = (10, 6), dpi: int = 100)[source]
Bases:
objectVisualizer for benchmark results.
Methods
Initialize visualizer.
Create a comprehensive visual report from benchmark results.
Plot summary of multiple benchmark results.
Plot BER vs SNR curve.
Plot coding gain vs SNR.
Plot constellation diagram.
Plot latency distribution.
Plot throughput comparison.
- __init__(figsize: tuple = (10, 6), dpi: int = 100)[source]
Initialize visualizer.
- Parameters:
figsize – Figure size in inches (width, height)
dpi – Figure resolution
- plot_ber_curve(results: Dict[str, Any], save_path: str | None = None) Figure[source]
Plot BER vs SNR curve.
- Parameters:
results – Benchmark results containing SNR and BER data
save_path – Optional path to save the figure
- Returns:
Matplotlib figure object
- plot_throughput_comparison(results: Dict[str, Any], save_path: str | None = None) Figure[source]
Plot throughput comparison.
- Parameters:
results – Benchmark results containing throughput data
save_path – Optional path to save the figure
- Returns:
Matplotlib figure object
- plot_latency_distribution(results: Dict[str, Any], save_path: str | None = None) Figure[source]
Plot latency distribution.
- Parameters:
results – Benchmark results containing latency data
save_path – Optional path to save the figure
- Returns:
Matplotlib figure object
- plot_constellation(constellation: Tensor, received_symbols: Tensor | None = None, save_path: str | None = None) Figure[source]
Plot constellation diagram.
- Parameters:
constellation – Ideal constellation points
received_symbols – Optional received symbols to overlay
save_path – Optional path to save the figure
- Returns:
Matplotlib figure object
- plot_coding_gain(results: Dict[str, Any], save_path: str | None = None) Figure[source]
Plot coding gain vs SNR.
- Parameters:
results – Benchmark results containing coding gain data
save_path – Optional path to save the figure
- Returns:
Matplotlib figure object