raplan.distributions
¶
RaPlan distributions module.
Exponential
dataclass
¶
Bases: Distribution
Exponential distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lambd
|
int | float
|
Occasion rate or 1 divided by the desired mean. In scheduling, it should be greater than zero. |
1.0
|
LogNormal
dataclass
¶
Bases: Distribution
Log-normal distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mu
|
int | float
|
Mean of the underlying normal distribution. Any value. |
1.0
|
sigma
|
int | float
|
Standard deviation of the underlying normal distribution. Must be >0. |
1.0
|
Pareto
dataclass
¶
Bases: Distribution
Pareto distribution.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
min_x
|
int | float
|
Minimum x value. |
1.0
|
Triangular
dataclass
¶
Triangular(
low: int | float = 0.0,
high: int | float = 1.0,
mode: int
| float
| None = field(default=None, skip_if_default=True),
)
Bases: Distribution
Triangular distribution.
Samples are in the range [low, high] and with the specified mode between those bounds. The mode defaults to the midpoint between the two bounds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
low
|
int | float
|
Lower bound of the sample range. |
0.0
|
high
|
int | float
|
Upper bound of the sample range. |
1.0
|
mode
|
int | float | None
|
The mode between those two bounds. |
field(default=None, skip_if_default=True)
|
Uniform
dataclass
¶
Weibull
dataclass
¶
Bases: Distribution
Weibull distribution (2-parameter).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha
|
int | float
|
Shape parameter. |
2.0
|
mtbf
|
int | float
|
Mean time between failure. |
10.0
|