Utils for PSMs

PressureSensitiveMats.active_sfmFunction
active_sfm(x, n, thresh)

Return the indices of sensors with a mean spectral flatness measure, taken in segments of length n, above the threshold in dB.

source
PressureSensitiveMats.apply2segFunction
apply2seg(f::Function, x::AbstractMatrix{T} , n::Integer)

Convenience function to apply a function f to segments of length n to the matrix x.

source
PressureSensitiveMats.moving_statsFunction
moving_stats(x::AbstractVector{T}, L::Integer)

Return moving average and variance of x using a window length L

source
moving_stats(x::AbstractVector{T}, w::AbstractVector{<:Integer})

Return moving average and variance of x using a window lengths w

source