Skip to content

Commit bfe2216

Browse files
Some old inconsistency, e.g., method => gltype; costfun => cfspec
1 parent beb1d0f commit bfe2216

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622"
2323
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2424
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2525
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
26+
WaveletsExt = "8f464e1e-25db-479f-b0a5-b7680379e03f"
2627

2728
[compat]
2829
Arpack = "0.4.0, 0.5.3"
@@ -42,6 +43,7 @@ Reexport = "1"
4243
SimpleWeightedGraphs = "1.1.1"
4344
Statistics = "1"
4445
StatsBase = "0.33.6, 0.34"
46+
WaveletsExt = "0.2.2"
4547
julia = ">= 1.10"
4648

4749
[extras]

docs/src/examples/P64.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,19 +35,19 @@ plot!(left_margin = 5mm) # hide
3535
## analyze the signal via HGLET
3636
dmatrixH, dmatrixHrw, dmatrixHsym = HGLET_Analysis_All(G, GP)
3737
dvec_hglet, BS_hglet, trans_hglet = HGLET_GHWT_BestBasis(GP, dmatrixH = dmatrixH,
38-
dmatrixHrw = dmatrixHrw, dmatrixHsym = dmatrixHsym, costfun = 1)
38+
dmatrixHrw = dmatrixHrw, dmatrixHsym = dmatrixHsym, cfspec = 1)
3939
4040
## LP-HGLET
4141
dmatrixsH, dmatrixsHsym = LPHGLET_Analysis_All(G, GP; ϵ = 0.3)
4242
dvec_lphglet, BS_lphglet, trans_lphglet = HGLET_GHWT_BestBasis(GP, dmatrixH = dmatrixsH,
43-
dmatrixHsym = dmatrixsHsym, costfun = 1)
43+
dmatrixHsym = dmatrixsHsym, cfspec = 1)
4444
4545
# find the top 10 HGLET basis vectors
4646
important_idx = sortperm(dvec_hglet[:].^2; rev = true)
4747
hglet_top10 = zeros(N, 10)
4848
for i in 1:10
4949
w, _ = HGLET_Synthesis(reshape(spike(important_idx[i], N), (N, 1)),
50-
GP, BS_hglet, G, method = :L)
50+
GP, BS_hglet, G, gltype = :L)
5151
hglet_top10[:, i] = w[:]
5252
end
5353
wiggle(hglet_top10; sc = 0.45)
@@ -58,7 +58,7 @@ important_idx = sortperm(dvec_lphglet[:].^2; rev = true)
5858
lphglet_top10 = zeros(N, 10)
5959
for i in 1:10
6060
w, _ = LPHGLET_Synthesis(reshape(spike(important_idx[i], N), (N, 1)),
61-
GP, BS_lphglet, G; method = :L, ϵ = 0.3)
61+
GP, BS_lphglet, G; gltype = :L, ϵ = 0.3)
6262
lphglet_top10[:, i] = w[:]
6363
end
6464
wiggle(lphglet_top10; sc = 0.45)

0 commit comments

Comments
 (0)