kumulant

SeasonalSmoothingResult

@Serializable
@SerialName(value = "SeasonalSmoothingResult")
data class SeasonalSmoothingResult(val level: Double, val trend: Double, val seasons: List<Double>, val currentSlot: Int, val phi: Double, val mode: SeasonalMode) : Result(source)

Snapshot from a SeasonalSmoothingStat: level, trend, seasonal factors, and forecast machinery.

Constructors

Link copied to clipboard
constructor(level: Double, trend: Double, seasons: List<Double>, currentSlot: Int, phi: Double, mode: SeasonalMode)

Properties

Link copied to clipboard

Index 0..period-1 of the next seasonal slot to consume.

Link copied to clipboard

Smoothed level.

Link copied to clipboard

Seasonal coupling.

Link copied to clipboard
val period: Int

Length of the seasonal cycle.

Link copied to clipboard
val phi: Double

Trend damping factor in (0, 1].

Link copied to clipboard

Seasonal factors; length equals the configured period and wraps around at horizon h.

Link copied to clipboard

Smoothed trend.

Functions

Link copied to clipboard
fun forecast(steps: Int): Double

Project steps updates ahead using the same recurrence shape as the stat: trend contribution is geometrically damped by phi, seasonal contribution wraps around the seasons vector.

SeasonalSmoothingResult

constructor(level: Double, trend: Double, seasons: List<Double>, currentSlot: Int, phi: Double, mode: SeasonalMode)(source)

currentSlot

Index 0..period-1 of the next seasonal slot to consume.

forecast

fun forecast(steps: Int): Double(source)

Project steps updates ahead using the same recurrence shape as the stat: trend contribution is geometrically damped by phi, seasonal contribution wraps around the seasons vector.

level

Smoothed level.

mode

Seasonal coupling.

period

Length of the seasonal cycle.

phi

Trend damping factor in (0, 1].

seasons

Seasonal factors; length equals the configured period and wraps around at horizon h.

trend

Smoothed trend.