openskill.models.common module¶
Objects and Attributes Common to All Models
Common functions for all models.
- openskill.models.common._matrix_transpose(matrix: list[list[Any]]) list[list[Any]][source]¶
Transpose a matrix.
- Parameters:
matrix – A matrix in the form of a list of lists.
- Returns:
A transposed matrix.
- openskill.models.common._normalize(vector: list[float], target_minimum: float, target_maximum: float) list[float][source]¶
Normalizes a vector to a target range of values.
- Parameters:
vector – A vector to normalize.
target_minimum – Minimum value to scale the values between.
target_maximum – Maximum value to scale the values between.
- Returns:
Normalized vector.