Skip to main content
. 2021 Dec 20;21(24):8487. doi: 10.3390/s21248487
Algorithm 1: Segmentation procedure based on Jeffreys distance

Data: Input data

Divide data into M segments of length equal to L: Segment 1, Segment 2, …, Segment M

Estimate the pdf in each segment:
  • 1 
    fork1toMdo
  • 2 
    Calculate p^k(x) for Segment k

Estimate the pdf of the last L samples in the signal: p^*(x)

Calculate the Jeffreys distance:
  • 3 
    fork1toMdo
  • 4 
    Calculate J^(p^k(x),p^*(x))
Calculate the increments of Jeffreys distance:
  • 5 
    fork1toM1do
  • 6 
    Calculate Dk=J^(p^k+1(x),p^*(x))J^(p^k(x),p^*(x))

Use the LLR method to find change in scale in D1,,DM1: i*

Use the LLR method to find change in scale in D1,,Di*1: i**

Use the LLR method to find change in scale in D1,,Di*1: i***