Lines Matching refs:psum
160 float psum; in tonality_get_info() local
192 psum=0; in tonality_get_info()
196 psum += tonal->pmusic[i]; in tonality_get_info()
198 psum += tonal->pspeech[i]; in tonality_get_info()
199 psum = psum*tonal->music_confidence + (1-psum)*tonal->speech_confidence; in tonality_get_info()
202 info_out->music_prob = psum; in tonality_get_info()
539 float psum; in tonality_analysis() local
565 psum=1e-20f; in tonality_analysis()
594 psum += tonal->pspeech[i] + tonal->pmusic[i]; in tonality_analysis()
595 psum = 1.f/psum; in tonality_analysis()
598 tonal->pspeech[i] *= psum; in tonality_analysis()
599 tonal->pmusic [i] *= psum; in tonality_analysis()
601 psum = tonal->pmusic[0]; in tonality_analysis()
603 psum += tonal->pspeech[i]; in tonality_analysis()