Internal Types

There are two important objects when thinking about trace rescaling. First is the storm trace, and second is its summary. We store the trace as a StormTrace and the summary as a Vector{Float64}. A history of storm traces and summaries is then stored as a StormHistory.

Storm Traces

The storm trace type contains both the time points (a range) and the values (a matrix).

You can compute the number of variables using

You can compute the length (number of time points) with

Base.lengthMethod
length(t::StormTrace)

Compute the length of a StormTrace, which is the number of time points (not total number of elements).

source

Storm History

HistoricalStormTraceSimulation.StormHistoryType
StormHistory(summaries,traces)

For storing historical storms.

Arguments

  • summaries: Should be a vector of vectors each of length q, containing summaries of storms.
  • traces: Should be a vector of StormTraces, each satisfying nvariables(t)==q.
source

You can compute the number of storms with

Base.lengthMethod
length(s::StormHistory)

Compute the length of a StormHistory, i.e. the number of storms contained in the history.

source