CADETProcess.comparison.L2#
- class CADETProcess.comparison.L2(reference: ReferenceBase, components: dict[str, list] | None = None, use_total_concentration: bool = False, use_total_concentration_components: bool = True, start: float | None = None, end: float | None = None, transform: Callable | None = None, only_transforms_array: bool = True, resample: bool = True, smooth: bool = False, normalize: bool = False)[source]#
L2 norm difference metric.
- Attributes:
bad_metricslist: Worst case values for each metric.
n_metricsint: Number of metrics.
referenceSolutionBase: The reference solution.
Methods
__call__(solution)Compute the difference between the reference solution and the input solution.
Wrap method automatically check reference and solution dimensions.
evaluate(solution)Compute the difference between the reference solution and the input solution.
Wrap method to automatically resample, normalize, and smooth solution.
slice_and_transform(solution)Slice the solution and applies the transform callable (if defined).
Wrap method to automatically slice solution.
Wrap method s.t.