Created
June 21, 2022 13:43
-
-
Save YHaruoka/dc27f0a38f91f1535fd5924fac15be3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from pygsp import graphs, filters | |
G = graphs.Logo() | |
G.estimate_lmax() | |
g = filters.Heat(G, tau=100) | |
DELTAS = [20, 30, 1090] | |
s = np.zeros(G.N) | |
s[DELTAS] = 1 | |
s = g.filter(s) | |
G.plot_signal(s, highlight=DELTAS, backend='matplotlib') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment