Multichannel signal analysis introduced.
`STFT.analysis` is able to handle arrays of signals without any trouble.
This commit is contained in:
parent
a561d68843
commit
e627bdc975
1 changed files with 9 additions and 0 deletions
|
@ -27,5 +27,14 @@ function analysis(
|
||||||
_fft(sc, 1) # Convert segments to frequency-domain
|
_fft(sc, 1) # Convert segments to frequency-domain
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function analysis(
|
||||||
|
xs::AbstractArray{<:AbstractVector{T}},
|
||||||
|
w::AbstractVector{T},
|
||||||
|
L::Integer = 0,
|
||||||
|
N::Integer = length(w);
|
||||||
|
)::AbstractArray{<:AbstractMatrix{<:Complex}} where {T<:Number}
|
||||||
|
[analysis(x, w, L, N) for x ∈ xs]
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end # module
|
end # module
|
||||||
|
|
Loading…
Reference in a new issue