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.