Lines Matching refs:psum
147 float psum; in tonality_get_info() local
179 psum=0; in tonality_get_info()
183 psum += tonal->pmusic[i]; in tonality_get_info()
185 psum += tonal->pspeech[i]; in tonality_get_info()
186 psum = psum*tonal->music_confidence + (1-psum)*tonal->speech_confidence; in tonality_get_info()
189 info_out->music_prob = psum; in tonality_get_info()
507 float psum; in tonality_analysis() local
536 psum=1e-20f; in tonality_analysis()
565 psum += tonal->pspeech[i] + tonal->pmusic[i]; in tonality_analysis()
566 psum = 1.f/psum; in tonality_analysis()
569 tonal->pspeech[i] *= psum; in tonality_analysis()
570 tonal->pmusic [i] *= psum; in tonality_analysis()
572 psum = tonal->pmusic[0]; in tonality_analysis()
574 psum += tonal->pspeech[i]; in tonality_analysis()