ExceedanceCurve

vecxt_re.ExceedanceCurve
See theExceedanceCurve companion object
final class ExceedanceCurve(val amounts: Array[Double])

An empirical exceedance curve: one value per iteration, ranked largest first.

The k-th largest value (1-based rank k) sits at return period numberIterations / k: it is equalled or exceeded in k of the numberIterations iterations. The curve is a step function between these points; nothing is interpolated.

Value parameters

amounts

one value per iteration, sorted descending. Not copied and not checked: build one through Scenarr.oep / Scenarr.aep, or ExceedanceCurve.fromIterationValues, unless you know the array is already ranked.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def lossAt(rp: Double): Double

The loss at return period rp: the k-th largest value with k = floor(numberIterations / rp), i.e. the value at the first curve point whose return period is at least rp. Off the grid of return periods this is the next point up the curve, so it never understates the loss.

The loss at return period rp: the k-th largest value with k = floor(numberIterations / rp), i.e. the value at the first curve point whose return period is at least rp. Off the grid of return periods this is the next point up the curve, so it never understates the loss.

Return periods below 1 give the smallest value.

Attributes

Throws
IllegalArgumentException

if rp is not positive, or exceeds numberIterations: the simulation says nothing about losses that rare.

inline def numberIterations: Int

The number of iterations, which is also the largest return period on the curve.

The number of iterations, which is also the largest return period on the curve.

Attributes

inline def returnPeriod(i: Int): Double

Return period of the value at 0-based index i.

Return period of the value at 0-based index i.

Attributes

def returnPeriodAt(loss: Double): Option[Double]

The return period at which loss is reached or equalled: numberIterations / (number of iterations >= loss). None when no iteration reaches it.

The return period at which loss is reached or equalled: numberIterations / (number of iterations >= loss). None when no iteration reaches it.

Attributes

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val amounts: Array[Double]
lazy val points: Array[(returnPeriod: Double, amount: Double)]

The curve as (returnPeriod, amount) pairs, largest amount first.

The curve as (returnPeriod, amount) pairs, largest amount first.

Attributes

lazy val returnPeriods: Array[Double]