View full-text article in PMC Sensors (Basel). 2023 Jan 17;23(3):1069. doi: 10.3390/s23031069 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Table 2. Definition of approximate Entropy (ApEn) as proposed in [35]. We used parameter values of m=2 and r=0.2×sd(x) as recommended in [36]. ApEn(m,r,k) applied to a time-series x={x1, x2, …, xK} Define a vector of length m that begins with xi, as ui={xi, xi+1, …, xi+m−1}, where 1≤i ≤K−m+1. Then, form a sequence of these vectors that covers all points in the time series: {u1, u2, …, uK−m+1} Define the distance d between ui and uj as d[ui, uj]=max1≤l≤m|xi+l−1−xj+l−1| Define Cim(r)=(number of uj such that d[ui, uj]≤ r)/(K−m+1) , where 1≤i≤K−m+1 The scalar defined as ∅m(r)=1K−m+1∑i=1K−m+1logCim(r) then gives: ApEn(m,r,K)=[∅m(r)−∅m+1(r)]