QuantumQuarantineLayer constructor

QuantumQuarantineLayer({
  1. double highAmountThreshold = 1000,
  2. int highFrequencyThreshold = 10,
  3. StorageAdapter? storage,
  4. SecurityConfig config = const SecurityConfig(),
  5. double? blockThreshold,
  6. 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;