Table of Contents

Class M4TimeSeries<T>

Namespace
AiDotNet.Data.TimeSeries
Assembly
AiDotNet.dll

Represents a single time series from the M4 Competition.

public class M4TimeSeries<T>

Type Parameters

T

The numeric type used for values.

Inheritance
M4TimeSeries<T>
Inherited Members

Constructors

M4TimeSeries(string, IReadOnlyList<T>, M4Frequency)

Initializes a new instance of the M4TimeSeries<T> class.

public M4TimeSeries(string seriesId, IReadOnlyList<T> values, M4Frequency frequency)

Parameters

seriesId string
values IReadOnlyList<T>
frequency M4Frequency

Properties

Frequency

Gets the frequency of this time series.

public M4Frequency Frequency { get; }

Property Value

M4Frequency

Length

Gets the length of the time series.

public int Length { get; }

Property Value

int

SeriesId

Gets the unique identifier for this series (e.g., "Y1", "M1234", "H414").

public string SeriesId { get; }

Property Value

string

Values

Gets the time series values.

public IReadOnlyList<T> Values { get; }

Property Value

IReadOnlyList<T>