Lines Matching defs:energy
93 double cross_corr, normalizer, energy, energy_tmp;
280 * Find energy of each subframe projected onto its history, for a range of delays
296 energy = silk_energy_FLP( basis_ptr, sf_length_8kHz );
297 C[ k ][ d ] = (silk_float)( 2 * cross_corr / ( energy + energy_tmp ) );
437 energy = energy_tmp;
440 energy += energies_st3[ k ][ j ][ lag_counter ];
443 CCmax_new = (silk_float)( 2 * cross_corr / energy );
569 double energy;
595 /* Calculate the energy for first lag */
597 energy = silk_energy_FLP( basis_ptr, sf_length ) + 1e-3;
598 silk_assert( energy >= 0.0 );
599 scratch_mem[lag_counter] = (silk_float)energy;
605 energy -= basis_ptr[sf_length - i] * (double)basis_ptr[sf_length - i];
606 silk_assert( energy >= 0.0 );
609 energy += basis_ptr[ -i ] * (double)basis_ptr[ -i ];
610 silk_assert( energy >= 0.0 );
612 scratch_mem[lag_counter] = (silk_float)energy;