Skip to main content

detectEventSensitivity

chainalign-backend


chainalign-backend / services/EdgeCaseDetectionService / detectEventSensitivity

Function: detectEventSensitivity()

detectEventSensitivity(demandHistory, cvThreshold): boolean

Defined in: services/EdgeCaseDetectionService.js:67

Detect event sensitivity (high variability around known dates) Uses coefficient of variation and checks for spikes

Parameters

demandHistory

number[]

Historical demand values

cvThreshold

number = 0.8

CV threshold for event sensitivity (default: 0.8)

Returns

boolean

True if event sensitive