kaira.benchmarks.BenchmarkVisualizer

Inheritance diagram of BenchmarkVisualizer

Inheritance diagram for BenchmarkVisualizer

class kaira.benchmarks.BenchmarkVisualizer(figsize: tuple = (10, 6), dpi: int = 100)[source]

Bases: object

Visualizer for benchmark results.

Methods

__init__

Initialize visualizer.

create_benchmark_report

Create a comprehensive visual report from benchmark results.

plot_benchmark_summary

Plot summary of multiple benchmark results.

plot_ber_curve

Plot BER vs SNR curve.

plot_coding_gain

Plot coding gain vs SNR.

plot_constellation

Plot constellation diagram.

plot_latency_distribution

Plot latency distribution.

plot_throughput_comparison

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

plot_benchmark_summary(results_file: str, save_path: str | None = None) Figure[source]

Plot summary of multiple benchmark results.

Parameters:
  • results_file – Path to JSON file containing benchmark results

  • save_path – Optional path to save the figure

Returns:

Matplotlib figure object

create_benchmark_report(results_file: str, output_dir: str = 'benchmark_plots')[source]

Create a comprehensive visual report from benchmark results.

Parameters:
  • results_file – Path to JSON file containing benchmark results

  • output_dir – Directory to save plots