Attributes
Members list
Type members
Inherited and Abstract types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Mirror
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Concrete methods
Combine two scenarios. Same as combineAll(Seq(s1, s2)).
Combine two scenarios. Same as combineAll(Seq(s1, s2)).
Attributes
Combine scenarios from the same simulation into one, with the same semantics as Scenarr.combineAll:
Combine scenarios from the same simulation into one, with the same semantics as Scenarr.combineAll:
- Events with the same
eventIdare one event, and their losses are summed. An ID must sit at the same (iteration, day) wherever it appears. - Scenarios with no events don't constrain anything. All scenarios that have events must agree on
numberIterationsandday1. - Scenarios linked by shared event IDs form a group whose threshold is the sum of its members' thresholds; the result's threshold is the largest group threshold. For two scenarios:
t1 + t2if they share an ID,max(t1, t2)otherwise. - Events at or below the result's threshold are dropped, once, after all losses have been summed.
Combining with non-zero thresholds is not associative, so prefer this over folding combine.
Attributes
- Throws
-
IllegalArgumentException
if
scenariosis empty, if scenarios with events disagree onnumberIterationsorday1, or if an event ID appears at more than one (iteration, day)
A scenario with no events, belonging to a simulation of numberIterations iterations starting at day1.
A scenario with no events, belonging to a simulation of numberIterations iterations starting at day1.
With the default zero threshold it leaves any scenario unchanged under combine. A positive threshold states that nothing above it happened, and raises the threshold of anything it is combined with.