DatasetIndexModelGroup

class glotaran.analysis.optimization_group_calculator_linked.DatasetIndexModelGroup(data: np.ndarray, weight: np.ndarray, has_scaling: bool, group: str, data_sizes: list[int], dataset_models: list[DatasetIndexModel])[source]

Bases: tuple

A model which contains information about a group of dataset with linked clp.

Create new instance of DatasetIndexModelGroup(data, weight, has_scaling, group, data_sizes, dataset_models)

Attributes Summary

data

Alias for field number 0

data_sizes

Holds the sizes of the concatenated datasets.

dataset_models

Alias for field number 5

group

The concatenated labels of the involved datasets.

has_scaling

Indicates if at least one dataset in the group needs scaling.

weight

Alias for field number 1

Methods Summary

count

Return number of occurrences of value.

index

Return first index of value.

Methods Documentation

count(value, /)

Return number of occurrences of value.

data: np.ndarray

Alias for field number 0

data_sizes: list[int]

Holds the sizes of the concatenated datasets.

dataset_models: list[DatasetIndexModel]

Alias for field number 5

group: str

The concatenated labels of the involved datasets.

has_scaling: bool

Indicates if at least one dataset in the group needs scaling.

index(value, start=0, stop=sys.maxsize, /)

Return first index of value.

Raises ValueError if the value is not present.

weight: np.ndarray

Alias for field number 1