kumulant

CrossingResult

@Serializable
@SerialName(value = "CrossingResult")
data class CrossingResult(val level: Double, val upCrossings: Long, val downCrossings: Long, val endedAtOrAboveLevel: Boolean? = null) : Result(source)

Counts of upward and downward crossings of a fixed level.

Constructors

CrossingResult

constructor(level: Double, upCrossings: Long, downCrossings: Long, endedAtOrAboveLevel: Boolean? = null)(source)

Properties

downCrossings

Number of strict transitions from value >= level to value < level.

endedAtOrAboveLevel

Whether the last observed value was at or above level, or null before any observation.

Carried so a merge into a stat with no baseline of its own can continue from the side the snapshot left off on, instead of spending its next update establishing one afresh and losing the crossing that update represents.

level

Level the input stream was compared against.

upCrossings

Number of strict transitions from value < level to value >= level.