EqualAreaPenalty
- class glotaran.model.clp_penalties.EqualAreaPenalty(*, type: str = 'equal_area', source: str, source_intervals: list[tuple[float, float]], target: str, target_intervals: list[tuple[float, float]], parameter: Parameter | str, weight: float)[source]
Bases:
ClpPenalty
Forces the area of 2 clp to be the same.
An equal area constraint adds a the difference of the sum of a compartments in the e matrix in one or more intervals to the scaled sum of the e matrix of one or more target compartments to residual. The additional residual is scaled with the weight.
Method generated by attrs for class EqualAreaPenalty.
Attributes Summary
Methods Summary
Get the type string.
Get the type for a type string.
Get all type strings.
Methods Documentation
- classmethod get_item_type_class(item_type: str) Type
Get the type for a type string.
- Parameters:
item_type (str) – The type string.
- Return type:
Type
- parameter: ParameterType