wolfhece.assets.pie.distribution ================================ .. py:module:: wolfhece.assets.pie.distribution Module Contents --------------- .. py:class:: PieSlice One normalized pie slice definition. .. py:attribute:: value :type: float .. py:attribute:: fraction :type: float .. py:attribute:: start_angle_deg :type: float .. py:attribute:: end_angle_deg :type: float .. py:attribute:: label :type: str .. py:class:: PieDistributionModel(values: Sequence[float], labels: Sequence[str] | None = None) Compute and store normalized pie fractions from values. .. py:attribute:: _values .. py:attribute:: _fractions .. py:attribute:: _labels :type: list[str] :value: [] .. py:property:: values :type: numpy.ndarray .. py:property:: fractions :type: numpy.ndarray .. py:property:: labels :type: list[str] .. py:method:: set_values(values: Sequence[float], labels: Sequence[str] | None = None) -> None .. py:method:: slices(start_angle_deg: float = 90.0, clockwise: bool = False) -> list[PieSlice]