Changeset f9d5346


Ignore:
Timestamp:
Mar 3, 2013, 12:03:01 AM (12 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
f72364d
Parents:
2a2636a
Message:

src/mathutils.c: fix parzen and welch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.c

    r2a2636a rf9d5346  
    110110    case aubio_win_welch:
    111111      for (i=0;i<size;i++)
    112         w[i] = 1.0 - SQR((2*i-size)/(size+1.0));
     112        w[i] = 1.0 - SQR((2.*i-size)/(size+1.0));
    113113      break;
    114114    case aubio_win_parzen:
    115115      for (i=0;i<size;i++)
    116         w[i] = 1.0 - ABS((2*i-size)/(size+1.0));
     116        w[i] = 1.0 - ABS((2.*i-size)/(size+1.0));
    117117      break;
    118118    default:
Note: See TracChangeset for help on using the changeset viewer.