CADETProcess.comparison.Comparator#
- class CADETProcess.comparison.Comparator(name)[source]#
Class for comparing simulation results against reference data.
- Attributes:
- namestr
Name of the Comparator instance.
- referencesdict
Dictionary containing the reference data to be compared against.
- solution_pathsdict
Dictionary containing the solution path for each difference metric.
metricslistlist[DifferenceBase]: List of difference metrics.
Methods
__call__(simulation_results)Evaluate all metrics for a given simulation and return the results as a list.
add_difference_metric(reference[, ...])Initialize an instance of DifferenceBase.
add_reference(reference[, update, smooth])Add reference to the Comparator.
Verify if all required parameters are set.
evaluate(simulation_results)Evaluate all metrics for a given simulation and return the results as a list.
extract_solution(simulation_results, metric)Extract the solution for a given metric from the SimulationResults object.
plot_comparison(simulation_results[, ...])Plot the comparison of the simulation results with the reference data.