pub struct Sigmoid {
pub max_points: Decimal,
pub p: Decimal,
pub s: Decimal,
/* private fields */
}
Expand description
Sigmoid function. f(x) = 1 / (1 + e^-x)
.
Fitting the sigmoid-like function from the PoE white-paper:
f(x) = r_max * (2 / (1 + e ^(-s * x^p) - 1)
Fields§
§max_points: Decimal
§p: Decimal
§s: Decimal