Columnar scenario: one entry per event across iterations, days, amounts and ids.
isSorted is a promise from the constructor's caller that the columns are ordered by (iteration, day), and that every iteration lies in 1..numberIterations. It is trusted, not verified: per-iteration statistics (freq, agg, oep) feed it into unchecked single-pass kernels (see groupSums.scala), and passing isSorted = true for unsorted data gives silently wrong results. If you're unsure, leave it false and call .sorted.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Members list
Value members
Concrete methods
A multi-line, terminal-friendly report with the first 10 events. See show(eventRows).
A multi-line, terminal-friendly report with the first 10 events. See show(eventRows).
Attributes
A multi-line, terminal-friendly report: summary statistics, OEP / AEP at standard return periods (those the simulation can support), the largest events, and the first eventRows events in (iteration, day) order.
A multi-line, terminal-friendly report: summary statistics, OEP / AEP at standard return periods (those the simulation can support), the largest events, and the first eventRows events in (iteration, day) order.
Sorts a copy if this scenario isn't flagged sorted, so it costs O(n log n) on unsorted data. Meant for interrogating a scenario by eye, not for parsing.
Attributes
This scenario ordered by (iteration, day), with isSorted = true. Events on the same iteration and day keep their original relative order.
This scenario ordered by (iteration, day), with isSorted = true. Events on the same iteration and day keep their original relative order.
Returns scenario itself when it is already flagged sorted. When it is in order but not flagged, the result shares its arrays (no copy). Otherwise the columns are copied in sorted order.
Attributes
This scenario with every event ID replaced by eventKey(source, id), so its IDs can't collide with those of a scenario from another source under combineAll.
This scenario with every event ID replaced by eventKey(source, id), so its IDs can't collide with those of a scenario from another source under combineAll.
Attributes
- Throws
-
IllegalArgumentException
if an ID doesn't fit in 32 bits (it already carries a source, or isn't a vendor event ID)
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Concrete fields
Aggregate exceedance curve: the total of all events per iteration, ranked. Iterations with no events count as 0.
Aggregate exceedance curve: the total of all events per iteration, ranked. Iterations with no events count as 0.
Attributes
Interpretation:
Interpretation:
- Excess variance over Poisson, scaled by m^2: Var(X) = E[X] for Poisson, so (v - m) is the extra variance; dividing by m^2 scales it.
- Method-of-moments estimate of 1/k for Negative Binomial: Var(X) = μ + μ^2 / k ⇒ (Var(X) - μ) / μ^2 = 1 / k. Thus, clusterCoeff estimates 1 / k. Smaller k (larger clusterCoeff) ⇒ more clustering/overdispersion.
- Relation to Index of Dispersion (VMR = v / m): clusterCoeff = (v - m) / m^2 = (VMR - 1) / m. It is a mean-scaled excess dispersion; under NB, it targets 1 / k.
Attributes
Occurrence exceedance curve: the largest single event per iteration, ranked. Iterations with no events count as a largest loss of 0.
Occurrence exceedance curve: the largest single event per iteration, ranked. Iterations with no events count as a largest loss of 0.
Only empty iterations (left at -Inf by groupMax) are replaced. A negative largest loss is kept as is, so don't simplify this to math.max(_, 0): negative losses may become meaningful depending on how inuring is treated.
Attributes
Computes the variance-to-mean ratio (dispersion) based on the frequency data. This metric is calculated by dividing the variance by the mean, using values from freq.meanAndVariance.
Computes the variance-to-mean ratio (dispersion) based on the frequency data. This metric is calculated by dividing the variance by the mean, using values from freq.meanAndVariance.
1 = poisson distributed > 1 => overdispersed... but careful with sample size.