EstimationProviderLinked
- class glotaran.optimization.estimation_provider.EstimationProviderLinked(dataset_group: DatasetGroup, data_provider: DataProviderLinked, matrix_provider: MatrixProviderLinked)[source]
Bases:
EstimationProvider
A class to provide estimation for optimization of a linked dataset group.
Initialize an estimation provider for a linked dataset group.
- Parameters:
dataset_group (DatasetGroup) – The dataset group.
data_provider (DataProviderLinked) – The data provider.
matrix_provider (MatrixProviderLinked) – The matrix provider.
Attributes Summary
Get the dataset group.
Methods Summary
Calculate the clp penalty.
Calculate the clps and the residual for a matrix and data.
Calculate the estimation.
Get the additional penalty.
Get the full penalty.
Get the results of the estimation.
Retrieve clp from reduced clp.
Methods Documentation
- calculate_clp_penalties(clp_labels: list[list[str]], clps: list[ndarray], global_axis: ndarray) list[float]
Calculate the clp penalty.
- calculate_residual(matrix: ArrayLike, data: ArrayLike) tuple[ArrayLike, ArrayLike]
Calculate the clps and the residual for a matrix and data.
- Parameters:
matrix (ArrayLike) – The matrix.
data (ArrayLike) – The data.
- Returns:
The estimated clp and residual.
- Return type:
tuple[ArrayLike, ArrayLike]
- get_full_penalty() ArrayLike [source]
Get the full penalty.
- Returns:
The clp penalty.
- Return type:
ArrayLike
- get_result() tuple[dict[str, DataArray], dict[str, DataArray]] [source]
Get the results of the estimation.
- property group: DatasetGroup
Get the dataset group.
- Returns:
The dataset group.
- Return type: