annotate WindowFunction.h @ 13:7680cc4c0073
* Tidying - made length of array variables type size_t and for loops unsigned int, where index > 0.
* Window length parameter is now a dropdown box.
author |
Carl Bussey <c.bussey@se10.qmul.ac.uk> |
date |
Wed, 13 Aug 2014 14:18:00 +0100 |
parents |
21147df9cb2d |
children |
4cf2d163127b |
rev |
line source |
c@0
|
1 //
|
c@0
|
2 // WindowFunction.h
|
c@0
|
3 // Tempogram
|
c@0
|
4 //
|
c@0
|
5 // Created by Carl Bussey on 26/06/2014.
|
c@0
|
6 // Copyright (c) 2014 Carl Bussey. All rights reserved.
|
c@0
|
7 //
|
c@0
|
8
|
c@0
|
9 #ifndef __Tempogram__WindowFunction__
|
c@0
|
10 #define __Tempogram__WindowFunction__
|
c@0
|
11
|
c@0
|
12 #include <iostream>
|
c@7
|
13 #include <cmath>
|
c@7
|
14 #include <vector>
|
c@0
|
15
|
c@0
|
16 class WindowFunction{
|
c@0
|
17 public:
|
c@13
|
18 static void hanning(float *signal, const unsigned int &N, const bool &normalise = false);
|
c@0
|
19 };
|
c@0
|
20
|
c@0
|
21 #endif /* defined(__Tempogram__WindowFunction__) */
|