Then we can define: where DTW is the distance between the prototype and the segment computed using Dynamic Time Warping.
s assigns highest probability to spans of φ that are most similar to the prototype φ f .