Changeset f9d5346 for src/mathutils.c


Ignore:
Timestamp:
Mar 3, 2013, 12:03:01 AM (7 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, 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.