CEBL
2.1
Main Page
Namespaces
Data Structures
Files
File List
Globals
plugins
features
PassBandFunctions.hpp
Go to the documentation of this file.
1
/*
2
* CEBL : CSU EEG Brain-Computer Interface Lab
3
*
4
* Author: Jeshua Bratman - jeshuabratman@gmail.com
5
*
6
* This file is part of CEBL.
7
*
8
* CEBL is free software; you can redistribute it and/or modify it.
9
* We only ask that if you use our code that you cite the source in
10
* your project or publication.
11
*
12
* EEG Group (www.cs.colostate.edu/eeg)
13
* Department of Computer Science
14
* Colorado State University
15
*
16
*/
17
18
#ifndef PASSBANDFUNCTIONS_H
19
#define PASSBANDFUNCTIONS_H
20
21
22
#include <fftw3.h>
23
#include "
cppR.hpp
"
24
25
typedef
ublas::matrix<double>
Matrix
;
26
struct
FilterState
27
{
28
bool
empty
;
29
Matrix
x
;
30
Matrix
y
;
31
};
32
33
struct
FilterResult
34
{
35
Matrix
filtered
;
36
FilterState
state
;
37
};
38
39
std::vector<int>
localMax
(ublas::matrix<double>);
40
ublas::matrix<double>
convolve
(ublas::matrix<double> x, ublas::matrix<double> y);
41
Matrix
chebbp2
(
int
N,
int
L,
double
wp,
double
ws1,
double
ws2);
42
Matrix
makePassband
(
int
N,
int
L,
int
Fs,
double
fstop1,
double
fpass,
double
fstop2);
43
ublas::matrix<double>
convolve
(ublas::matrix<double> x, ublas::matrix<double> y);
44
FilterResult
filter
(
Matrix
B,
Matrix
x,
FilterState
state);
45
46
#endif
Generated by
1.8.1.1