-
Notifications
You must be signed in to change notification settings - Fork 91
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
kernel_lowpass has arguments when being called in Expwin source code, what value for x is being passed? #49
Comments
I am not sure I understand your concern. I just tested
Please precise your concern. |
I wanted to know from the source code how kernel_lowpass is being called
without arguments in case of band max or band min being None
…On Wed, May 1, 2019, 1:19 PM nperraud ***@***.***> wrote:
I am not sure I understand your concern. I just tested expwin and
everything seems alright.
import numpy as np
from pygsp.filters import Expwin
from pygsp.graphs import Sensor
from matplotlib import pyplot as plt
N = 100
slope = 4
G = Sensor(N)
G.estimate_lmax()
f1 = filters.expwin.Expwin(G, band_min=None, band_max=0.4, slope=slope)
f2 = filters.expwin.Expwin(G, band_min=0.2, band_max=None, slope=slope)
f3 = filters.expwin.Expwin(G, band_min=0.2, band_max=0.4, slope=slope)
plt.figure(figsize=(15,4))
ax = plt.subplot(131)
f1.plot(ax=ax);
ax = plt.subplot(132)
f2.plot(ax=ax);
ax = plt.subplot(133)
f3.plot(ax=ax);
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#49 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHMSIMFYI54XDKX2CD2WANDPTFDSJANCNFSM4HJK2RXQ>
.
|
The function kernel_low pass is defined above taking the argument into account. I am closing the issue since this is not pygsp related. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taken from expwin.py in pygsp:
`def kernel_lowpass(x):
return h(0.5 - x/G.lmax + band_max)
def kernel_highpass(x):
return h(0.5 + x/G.lmax - band_min)
This doubt came to my mind when I wanted to use expwin as high pass filter for my graph. Is this a glitch?
The text was updated successfully, but these errors were encountered: