CusumResult

data class CusumResult(val sPlus: DoubleArray, val sMinus: DoubleArray, val alarmIndex: Int)(source)

Results of a two-sided tabular CUSUM control chart analysis.

Holds the per-observation upper (C⁺) and lower (C⁻) cumulative sums produced by the tabular CUSUM algorithm, together with the index of the first observation at which an out-of-control signal fired. The upper sum C⁺ accumulates positive deviations above the target; the lower sum C⁻ accumulates negative deviations below the target. An alarm is signaled as soon as either sum exceeds the decision interval H.

See also

Constructors

Link copied to clipboard
constructor(sPlus: DoubleArray, sMinus: DoubleArray, alarmIndex: Int)

Properties

Link copied to clipboard

the zero-based index of the first observation at which C⁺ > H or C⁻ > H, or -1 if no alarm was triggered anywhere in the series.

Link copied to clipboard

the sequence of lower cumulative sums C⁻ᵢ, one entry per observation. Each value is non-negative; a rising C⁻ indicates a sustained negative shift from target.

Link copied to clipboard

the sequence of upper cumulative sums C⁺ᵢ, one entry per observation. Each value is non-negative; a rising C⁺ indicates a sustained positive shift from target.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String