lab week 4 Flashcards

1
Q

temporal EEG filtering

A

also spectral

focusing on one spectral component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

power spectrum

A

a range of amplitudes (or power, A2) extracted from the Fourier Transform

Real-valued part of the Fourier coefficients

i.e. length of complex coefficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fourier transform

A

decomposes a signal into a complex spectrum that, for each frequency, has an amplitude (real) and a phase (imaginary)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

create a matrix of simulated signals

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

simulate an EEG like this in Python

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what is this?

A

offsets, phases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

you have a number of subplots. Print the title for a certain subplot after you’ve looped over all of them

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what is the maximum frequency at which you could measure the sine waves of your signal?

A

Nyquist frequency

you can only measure a frequency if you sample the signal at an even higher frequency

maximum frequency that can be measured is exactly 1/2 of the sampling rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what is the length of the frequency axis?

A

the number of frequencies that can be measured

similar to N/2 + 1

N = the number of samples

+1 because we get the 0Hz, the DC offset, for free)

produced by fft.rfftfreq(N, 1 / srate)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what does Fourier spectrum contain?

A

complex numbers that have the amplitude as their real component, and the phase as their imaginary component.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

extract the real-valued component from the imaginary number

A

also magnitude, modulus

np.abs(imaginary_numbers)

will extract sqrt( a2 + b2 ) from (a + bi)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fourier transform in Python

A

import scipy.fft as fft

spectrum = fft.rfft(signal)

amplitudes = np.abs(spectrum)/(N_of_samples/2)

frequency_axis = fft.rfftfreq(N_of_samples, 1 / srate )

plt.plot(frequency_axis, amplitudes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Return the angle of the complex argument

A

also argument

numpy.angle( data_structure_with_complex_numbers )

The counterclockwise angle from the positive real axis on the complex plane in the range (-pi, pi]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

plot the phase of the Fourier Spectrum

A

import scipy.fft as fft

spectrum = fft.rfft(signal)

phases = np.angle(spectrum)/np.pi

frequency_axis = fft.rfftfreq(N_of_samples, 1 / srate )

plt.plot(frequency_axis, phases)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly