Miscellaneous.jl

This module implements miscellaneous utilities.

FunctionDescription
Eegle.Miscellaneous.minimalocal minuma of a sequence
Eegle.Miscellaneous.maximalocal maxima of a sequence
Eegle.Miscellaneous.wastegarbage collect any number of arguments

๐Ÿ“–

Eegle.Miscellaneous.minima โ€” Function
function minima(v::AbstractVector{T}) 
where T<:Real

Return the 2-tuple formed by the vector of local minima of vector v and the vector of the indices of v corresponding to the minima.

This is useful in several situations. For example, Eegle uses it to segment spontaneous EEG data (see Eegle.Processing.epoching).

source
Eegle.Miscellaneous.maxima โ€” Function
function maxima(v::AbstractVector{T}) 
where T<:Real

Return the 2-tuple formed by the vector of local maxima of vector v and the vector of the indices of v corresponding to the maxima.

source
Eegle.Miscellaneous.waste โ€” Function
function waste(args...)

Force garbage collector to free memory for all arguments passed as args....

The arguments can be of any type. See here

Examples

using Eegle # or using Eegle.Miscellaneous

A = randn(1000, 1000)
b = randn(10000)

waste(A, b)
source