rob-luke / Neuroimaging.jl

Neuroimaging in Julia
https://rob-luke.github.io/Neuroimaging.jl
BSD 3-Clause "New" or "Revised" License
48 stars 11 forks source link

Add demean function #174

Open rob-luke opened 3 years ago

rob-luke commented 3 years ago

Describe the new feature or enhancement

Add a function to remove the mean from a signal

Describe your proposed implementation

s.data = s.data .- StatsBase.mean(s.data, dims=1)

Describe possible alternatives

Many other ways

Additional comments

@behinger used this code, so maybe others will find it useful.