Skip to content

Commit 20e60c7

Browse files
committed
fix important bug: use unfolding operator instead of Smooth Projection Operator
1 parent 4e19be0 commit 20e60c7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/LP-HGLET.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ function LPHGLET_Synthesis(dvec::Matrix{Float64}, GP::GraphPart, BS::BasisSpec,
6969
# standardize the eigenvector signs
7070
standardize_eigenvector_signs!(vec)
7171

72-
# construct smooth orthognal projector custom to current region
73-
P = Uf[indrs, :]' * Uf[indrs, indrs]
72+
# construct unfolder operator custom to current region
73+
P = Uf[indrs, :]'
7474

7575
# reconstruct the signal
7676
f += (P * vec) * dmatrix[indr, j, :]
@@ -150,8 +150,8 @@ function LPHGLET_Analysis_All(G::GraphSig, GP::GraphPart; ϵ::Float64 = 0.3)
150150
vec_sym = vec_sym[:, end:-1:1]
151151
standardize_eigenvector_signs!(vec_sym)
152152

153-
# construct smooth orthognal projector custom to current region
154-
P = Uf[indrs, :]' * Uf[indrs, indrs]
153+
# construct unfolding operator custom to current region
154+
P = Uf[indrs, :]'
155155
# obtain the expansion coefficients
156156
dmatrixlH[indr, j, :] = (P * vec)' * G.f
157157
dmatrixlHsym[indr, j, :] = (P * vec_sym)' * G.f

src/LP-NGWP.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,8 @@ end
230230

231231
function const_meyer_wavelets(𝚽, Uf; idx = 1:size(Uf, 1))
232232
N = size(𝚽, 1)
233-
# assemble smooth orthogonal projector custom to nodes `idx`
234-
P = Uf[idx, :]' * Uf[idx, idx]
233+
# assemble unfolding operator custom to nodes `idx`
234+
P = Uf[idx, :]'
235235
if diag(P) == χ(idx, N)
236236
B = 𝚽[:, idx]
237237
else

0 commit comments

Comments
 (0)