Skip to content

Commit 4475d29

Browse files
committed
add t start to docs
1 parent 3c08ff6 commit 4475d29

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: docs/form-analysis.md

+19
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,25 @@ To obtain an initial estimate of the segmentation, we follow these steps:
6565

6666
$\tau^*$ represents the period that maximizes the auto-correlation of the signal, accounting for noise outside repetitions.
6767

68+
### Finding the Start of the First Repetition
69+
70+
After estimating the period $\tau^*$, we search for the beginning of the first repetition $t_{start}$ by maximizing the average affinity $A_{avg}$ of $T(t_{start}, \tau^*)$:
71+
72+
$A_{avg}(T) = \frac{1}{k_{min}^2} \sum_{i=1}^{k_{min}} \sum_{j=1}^{k_{min}} A_{seq}(T_i, T_j)$
73+
74+
where:
75+
76+
$A_{seq}(T_i, T_j) = \frac{1}{\tau^*} \sum_{l=1}^{\tau^*} A(p_{t_i+l}, p_{t_j+l})$
77+
78+
- $A_{seq}(T_i, T_j)$ computes the similarity between two repetitions of equal period $\tau^*$ (intervals $T_i$ and $T_j$).
79+
- $A_{avg}(T)$ averages similarities between all possible pairs of intervals, representing a global affinity of the repetition segmentation $T$.
80+
- At this stage, $T$ is parameterized only by $t_{start}$, since $\tau^*$ was found in the previous step.
81+
82+
We select $t^*_{start}$ as the smallest value for which $A_{avg}(T(t_{start}, \tau^*))$ has a local maximum. This approach:
83+
84+
1. Provides the highest similarity between repetitions.
85+
2. Uses the smallest such maximum to prevent solutions like the beginning of the 2nd/3rd/etc. interval, which are also local maxima.
86+
6887
## Calculations:
6988

7089
| Metric | Formula |

0 commit comments

Comments
 (0)