Lines Matching refs:frame_probs
339 float frame_probs[2]; in tonality_analysis() local
764 mlp_process(&net, features, frame_probs); in tonality_analysis()
765 frame_probs[0] = .5f*(frame_probs[0]+1); in tonality_analysis()
769 frame_probs[1] = .5f*frame_probs[1]+.5f; in tonality_analysis()
770 frame_probs[1] *= frame_probs[1]; in tonality_analysis()
773 info->activity_probability = frame_probs[1]; in tonality_analysis()
795 p = MAX16(.05f,MIN16(.95f,frame_probs[1])); in tonality_analysis()
805 p0 *= (float)pow(1-frame_probs[1], beta); in tonality_analysis()
806 p1 *= (float)pow(frame_probs[1], beta); in tonality_analysis()
811 frame_probs[0] = tonal->vad_prob*frame_probs[0] + (1-tonal->vad_prob)*.5f; in tonality_analysis()
816 p = MAX16(.05f,MIN16(.95f,frame_probs[0])); in tonality_analysis()
826 p0 *= (float)pow(1-frame_probs[0], beta); in tonality_analysis()
827 p1 *= (float)pow(frame_probs[0], beta); in tonality_analysis()
836 speech0 = (float)pow(1-frame_probs[0], beta); in tonality_analysis()
837 music0 = (float)pow(frame_probs[0], beta); in tonality_analysis()
878 if (frame_probs[1]>.75) in tonality_analysis()
885 tonal->music_confidence += adapt*MAX16(-.2f,frame_probs[0]-tonal->music_confidence); in tonality_analysis()
892 tonal->speech_confidence += adapt*MIN16(.2f,frame_probs[0]-tonal->speech_confidence); in tonality_analysis()