math#


class NormalDistribution(mean=0, std=1, unit_max=False)[source]#

Bases: ToStringMixin

Parameters:
  • mean – the mean

  • std – the standard deviation

  • unit_max – if True, scales the distribution’s pdf such that its maximum value becomes 1

pdf(x)[source]#
sigmoid(x: float, min_value=0, max_value=1, k=1, x0=0)[source]#
reverse_sigmoid(x: float, max_value=1, min_value=0, k=1, x0=0)[source]#
reduce_float_precision_decimals(f: float, decimals: int) float[source]#