Mercurial > hg > svcore
comparison base/Window.h @ 813:97741fe16205
Comment about periodic windows
author | Chris Cannam |
---|---|
date | Fri, 24 May 2013 11:57:44 +0100 |
parents | 65311fb86166 |
children | 6a94bb528e9d |
comparison
equal
deleted
inserted
replaced
812:98d54183d0f8 | 813:97741fe16205 |
---|---|
39 template <typename T> | 39 template <typename T> |
40 class Window | 40 class Window |
41 { | 41 { |
42 public: | 42 public: |
43 /** | 43 /** |
44 * Construct a windower of the given type. | 44 * Construct a windower of the given type and size. |
45 * | |
46 * Note that the cosine windows are periodic by design, rather | |
47 * than symmetrical. (A window of size N is equivalent to a | |
48 * symmetrical window of size N+1 with the final element missing.) | |
45 */ | 49 */ |
46 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); } | 50 Window(WindowType type, size_t size) : m_type(type), m_size(size) { encache(); } |
47 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); } | 51 Window(const Window &w) : m_type(w.m_type), m_size(w.m_size) { encache(); } |
48 Window &operator=(const Window &w) { | 52 Window &operator=(const Window &w) { |
49 if (&w == this) return *this; | 53 if (&w == this) return *this; |