CADETProcess.comparison.PeakPosition

Contents

CADETProcess.comparison.PeakPosition#

class CADETProcess.comparison.PeakPosition(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]#

Absolute difference in peak peak position difference metric.

Attributes:
reference_peakslist of tuple

Contains the peaks found in the reference.

normalize_metricsbool

Indicates whether normalization is applied to the peak height difference scores.

normalization_factorlist of list

Contains the normalization factors for each peak in each component.

Methods

__call__(solution)

Compute the difference between the reference solution and the input solution.

checks_dimensions()

Wrap method automatically check reference and solution dimensions.

evaluate(solution)

Compute the difference between the reference solution and the input solution.

resamples_normalizes_and_smoothes_solution()

Wrap method to automatically resample, normalize, and smooth solution.

slice_and_transform(solution)

Slice the solution and applies the transform callable (if defined).

slices_solution()

Wrap method to automatically slice solution.

transforms_solution()

Wrap method s.t.