smooth out the values in the table by using a moving average window . concode_field_sep float lengthForValue concode_elem_sep float[] waveform concode_field_sep void set concode_elem_sep void offset concode_elem_sep void invert concode_elem_sep void setWaveform concode_elem_sep void scale concode_elem_sep float[] getWaveform concode_elem_sep void rectify concode_elem_sep int size concode_elem_sep float get concode_elem_sep void normalize concode_elem_sep float value concode_elem_sep void flip concode_elem_sep void addNoise concode_elem_sep void warp
void function ( int arg0 ) { if ( arg0 < 1 ) return ; float [ ] loc0 = ( float [ ] ) waveform . clone ( ) ; for ( int loc1 = arg0 ; loc1 < waveform . length ; loc1 ++ ) { float loc2 = 0 ; for ( int loc3 = loc1 - arg0 ; loc3 <= loc1 ; loc3 ++ ) { loc2 += loc0 [ loc3 ] / arg0 ; } waveform [ loc1 ] = loc2 ; } }