Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power spectrum in topo #636

Open
kalok87 opened this issue Oct 23, 2015 · 0 comments
Open

power spectrum in topo #636

kalok87 opened this issue Oct 23, 2015 · 0 comments

Comments

@kalok87
Copy link

kalok87 commented Oct 23, 2015

Hallo, by reading the source code, I have 2 questions about the hypercolumn_distance in analysis.py

  1. I have a preference map p and its range is in (0,Pi) , and if I want to use function power_spectrum(pref, peak_val=1.0) to analyse, should I just use p as input or should I use p = p/np.pi as input?

  2. I also found that Topographica use a different method to calculate the power spectrum of the map. Instead of using fftshift(abs(fft2(z))**2) where z is visual map which contains both selectivity and preference, Topo is using 1 - np.abs(fftshift(fft2(p - 0.5,s=None, axes=(-2, -1)))). What is the meaning of subtracting 0.5 and why we don't use square?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant