pub async fn plot_results(
config: &PlotConfig,
optimized_params: &[f64],
input_curve: &Curve,
target_curve: &Curve,
deviation_curve: &Curve,
cea2034_curves: &Option<HashMap<String, Curve>>,
output_path: &Path,
) -> Result<(), Box<dyn Error>>Expand description
Generate and save an HTML plot comparing the input curve with the optimized EQ response.
§Arguments
args- The list of args from the command lineinput_curve- The original frequency response curvesmoothed_curve- Optional smoothed inverted target curvetarget_curve- The target curveoptimized_params- The optimized filter parametersoutput_path- The path to save the HTML output filecea2034_curves- Optional CEA2034 curves to include in the ploteq_response- Optional EQ response to include in the plot
§Returns
- Result indicating success or failure