QuantumQuarantineLayer constructor
QuantumQuarantineLayer({
- double highAmountThreshold = 1000,
- int highFrequencyThreshold = 10,
- StorageAdapter? storage,
- SecurityConfig config = const SecurityConfig(),
- double? blockThreshold,
- double? flagThreshold,
Creates an anomaly-detection layer, defaulting to MemoryStorage
and the thresholds in config unless explicitly overridden.
Implementation
QuantumQuarantineLayer({
this.highAmountThreshold = 1000,
this.highFrequencyThreshold = 10,
StorageAdapter? storage,
SecurityConfig config = const SecurityConfig(),
double? blockThreshold,
double? flagThreshold,
}) : storage = storage ?? MemoryStorage(),
blockThreshold = blockThreshold ?? config.blockThreshold,
flagThreshold = flagThreshold ?? config.flagThreshold;