Skip to content
Merged

Dev #93

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "FourierAnalysis"
uuid = "e7e9c730-dc46-11e9-3633-f1ab55cc17e1"
authors = ["Marco-Congedo <marco.congedo@gmail.com>"]
version = "1.2.5"
version = "1.2.6"

[deps]
AbstractFFTs = "621f4979-c628-5d54-868e-fcf4e3e8185c"
Expand Down
3 changes: 3 additions & 0 deletions docs/Project.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
authors = ["Marco Congedo"]
version = "1.2.6"

[deps]
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
DocumenterTools = "35a29f4d-8980-5a13-9543-d66fff28ecb8"
Expand Down
6 changes: 3 additions & 3 deletions src/spectra.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function spectra( X :: Union{Vector{T}, Matrix{T}},
⏩ :: Bool = true) where T<:Real

(2)
function spectra( 𝐗 :: Vector{Matrix{T}},
function spectra( 𝐗 :: Union{Vector{Vector{T}}, Vector{Matrix{T}}},
< same argument sr, ..., ⏩ of method (1) > where T<:Real
```

Expand Down Expand Up @@ -367,7 +367,7 @@ end



function spectra( 𝐗 :: Vector{Matrix{T}},
function spectra( 𝐗 :: Union{Vector{Vector{T}}, Vector{Matrix{T}}},
sr :: Int,
wl :: Int;
tapering :: Union{Taper, TaperKind} = harris4,
Expand All @@ -390,7 +390,7 @@ function spectra( 𝐗 :: Vector{Matrix{T}},
# allocate memory for spectra : 𝗦 is a k-Vector of Spectra objects
𝗦 = SpectraVector(undef, k)

# function to compute spectra for the ith input data matrix `𝐗[i]`
# function to compute spectra for the ith input data vector or matrix `𝐗[i]`
sp!(i, ⏩) = 𝗦[i]=spectra(𝐗[i],
sr,
wl;
Expand Down