Parameters and uncertainty
Public imports from paretorium.
paretorium.Parameter
dataclass
A named, unit-bearing constant or distribution with optional concept-specific cases.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
id
|
str
|
Unique parameter identifier. |
required |
name
|
str
|
Display label. |
required |
units
|
str
|
Unit string matching consumer ports. |
required |
distribution
|
ParameterValue
|
Base constant or sampling distribution. |
required |
source
|
str
|
Optional provenance note. |
''
|
cases
|
tuple[ParameterCase, ...]
|
Option-specific replacements. At most one may match a concept. |
()
|
paretorium.ParameterCase
dataclass
Replace a parameter for a matching architecture; units stay unchanged.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
when
|
Mapping[str, str]
|
Nonempty decision-ID to option-ID selector. |
required |
value
|
ParameterValue
|
Constant or distribution in the original parameter's units. |
required |
source
|
str
|
Optional provenance note for the replacement. |
''
|
paretorium.Distribution
Bases: Protocol
Protocol for sampling a finite number using the supplied random generator.
paretorium.Uniform
dataclass
Uniform distribution over finite bounds with low < high.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
low
|
float
|
Lower bound. |
required |
high
|
float
|
Upper bound, strictly above the lower bound. |
required |
paretorium.Triangular
dataclass
Bounded distribution with a specified mode between its bounds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
low
|
float
|
Lower bound. |
required |
mode
|
float
|
Most likely value, within the bounds inclusive. |
required |
high
|
float
|
Upper bound, strictly above the lower bound. |
required |
paretorium.Lognormal
dataclass
Lognormal parameterized by arithmetic mean and coefficient of variation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
mean
|
float
|
Positive arithmetic mean, not the log-space mean. |
required |
cv
|
float
|
Nonnegative coefficient of variation (standard deviation divided by mean). |
required |
paretorium.Discrete
dataclass
Finite numeric outcomes with nonnegative probabilities summing to one.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
tuple[float, ...]
|
Nonempty finite numeric outcomes. |
required |
probabilities
|
tuple[float, ...]
|
Nonnegative probabilities corresponding to outcomes, summing to one. |
required |
paretorium.Beta
dataclass
Beta distribution with positive shape parameters, scaled to the specified bounds.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alpha
|
float
|
Positive first shape parameter. |
required |
beta
|
float
|
Positive second shape parameter. |
required |
low
|
float
|
Lower bound of the scaled distribution. |
0
|
high
|
float
|
Upper bound, strictly above the lower bound. |
1
|
paretorium.Binomial
dataclass
Number of successes in n trials with success probability p.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
Nonnegative integer trial count. |
required |
p
|
float
|
Probability of success in each trial, between zero and one inclusive. |
required |