Skip to main content
. 2023 Jun 1;23(11):5275. doi: 10.3390/s23115275
Algorithm 2 (MASRP 2): Algorithm to split the region when two ranges r and r’ detected with different patterns overlap one another
  • Calculate the length l of the overlapping ranges.

  • l = rright − r′left

  • After inputting the overlapping range l to the proposed 1D SNN model, divide l using the similarity value Sc, Sc′ (Sc is the similarity with the Range1 class; Sc′ is the similarity with the Range2 class) as a ratio value.

  • lr = l × {Sc/(Sc + Sc′)}, lr′ = l × {Sc′/(Sc + Sc′)}

  • Adjust rright and r′left using divided la and la′.

  • rright = rrightla′, rleft′ = rleft′ + la