Skip to main content
. 2022 Sep 3;12(9):1191. doi: 10.3390/brainsci12091191
Algorithm 1 Scale-Adjusting Algorithm.
  1: INPUT
  2: Aesn, σ1,σ1,max, σ1,min, λ;
  3:
  4: OUTPUT   
  5: σ1, σ1,max,σ1,min;
  6:
  7: ifAesn=0then
  8:     if σ1,maxσ1<ϵ then
  9:         Let σ1,max=σ1,max/λ;
10:     end if
11:     Let σ1,min=σ1;
12:     Calculate σ1=σ1+λ(σ1,maxσ1);
13: else
14:     if Aesn>1 then
15:         if σ1σ1,min<ϵ then
16:            Let σ1,min=λσ1,min;
17:         end if
18:         Let σ1,max=σ1;
19:         Calculate σ1=σ1λ(σ1σ1,min);
20:     end if
21: end if