ReReporting
Per-layer loss metrics over a simulation.
Precondition for every method taking years: years(i) is the 1-based iteration of cededToLayer(i), the two arrays have the same length, years is sorted in non-decreasing order, and every value is in 1..numIterations. Arrays that come from a Scenario, or a Scenarr with isSorted = true, already satisfy this.
lossReport checks the precondition and throws IllegalArgumentException if it is broken. The check costs nothing extra: its single pass only consumes years(i) when it equals the current iteration, so leftover entries at the end mean years was unsorted or out of range.
The group-sum based methods (attachmentProbability, exhaustionProbability, std) do NOT check it, because checking would add a second full pass. Unsorted years silently gives wrong numbers there: they keep only the last run of each iteration (see groupSums.scala).
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ReReporting.type