Skip to main content
. 2026 Sep 20;26(18):5960. doi: 10.3390/s26185960
Algorithm 2 Bounded EWMA Threshold Recalibration
Require: θt∈[θmin,θmax], Ri∈[0,1] from an authenticated accepted message, λ∈[0,1], step bound η≥0
  • 1:

    θ^←λRi+(1−λ)θt

  • 2:

    θ^←min(θmax,max(θmin,θ^))

  • 3:

    θt+1←min(θt+η,max(θt−η,θ^))

  • 4:

    EmitMetric  (θt+1)

  • 5:

    return  θt+1