TimeFrame Module
A `TimeFrame` contains multiple time-series that use the same temporal index.
Types
| Type | Description |
A 'data frame' that contains multiple time-series that are aligned and indexed in time. |
Functions and values
| Function or value |
Description
|
Full Usage:
TimeFrame.dates arg1
Parameters:
TimeFrame<'T, 'date, 'timeunit, 'timespan>
Returns: 'date list
|
Get all dates across all series in the timeframe for which values are registered.
|
|
|
Full Usage:
TimeFrame.dropFirstObservationIfPresent predicate frame
Parameters:
TimeSeries<'T, 'date, 'timeunit, 'timespan> -> bool
frame : Map<ShortCode, TimeSeries<'T, 'date, 'timeunit, 'timespan>>
Returns: TimeFrame<'T, 'date, 'timeunit, 'timespan>
|
|
|
|
Full Usage:
TimeFrame.filterBy fn arg2
Parameters:
ShortCode -> TimeSeries<'a, 'b, 'c, 'd> -> bool
arg1 : TimeFrame<'a, 'b, 'c, 'd>
Returns: TimeFrame<'a, 'b, 'c, 'd>
|
|
|
|
Full Usage:
TimeFrame.resolution frame
Parameters:
TimeFrame<'a, 'b, 'c, 'd>
-
A timeframe to get the resolution for.
Returns: TemporalResolution<'d>
The temporal resolution of the timeframe.
|
Identifies the temporal resolution of the data in a timeframe.
|
|
|
Full Usage:
TimeFrame.tryCreate series
Parameters:
CodedMap<TimeSeries<'T, 'date, 'timeunit, 'timespan>>
-
Returns: TimeFrame<'T, 'date, 'timeunit, 'timespan> option
Returns None if the time-series are not on a common timeline.
Otherwise, returns a timeframe containing all of the input time-series
|
Create a timeframe from one or more individual time-series.
|
bristlecone