Function generate_ratio_split_comparison_plot

Source
pub fn generate_ratio_split_comparison_plot(
    results: &[AnalysisResults],
    comparison_index: usize,
    output_path: &Path,
    include_entropy_by_lzmatches_column: bool,
    include_estimate_column: bool,
) -> Result<(), Box<dyn Error>>
Expand description

Generates a line plot for the various columns from a split comparison.

§Arguments

  • results - A slice of AnalysisResults, one for each analyzed file.
  • comparison_index - The index of the split comparison to plot in the split_comparisons array.
  • output_path - The path where the plot file will be written.
  • include_entropy_by_lzmatches_column - Includes column for (1 / lz_matches * entropy_ratio).
  • include_estimate_column - Includes column for (estimate_ratio).

§Returns

  • Result<(), Box<dyn std::error::Error>> - Ok if successful, otherwise a boxed std::error::Error.