1
--- speech-tools-1.2.3.orig/speech_class/EST_track_aux.cc
2
+++ speech-tools-1.2.3/speech_class/EST_track_aux.cc
6
for (i = 0, var = 0.0; i < tr.num_frames(); ++i)
7
- var += tr.track_break(i) ? 0.0 : pow(tr.a(i, channel) - mean, 2.0);
8
+ var += tr.track_break(i) ? 0.0 : pow(tr.a(i, channel) - mean, (float)2.0);
14
for (i = 0; i < size; ++i)
15
if (a.val(i) && b.val(i))
16
- sum += pow((a.a(i, channel) - b.a(i, channel)), 2.0);
17
+ sum += pow((a.a(i, channel) - b.a(i, channel)), (float)2.0);
19
sum = sqrt(sum / size);
22
for (p = tl.head(); p; p = next(p))
23
for (i = 0; i < tl(p).num_frames(); ++i)
24
if (!tl(p).track_break(i))
25
- var += pow(tl(p).a(i, channel) - mean, 2.0);
26
+ var += pow(tl(p).a(i, channel) - mean, (float)2.0);