Skip to content

Explore possibilities to combine leadfield dimensions for computing the magnitude #130

@jschepers

Description

@jschepers

At the moment, the magnitude can be computed given the orientation of a headmodel or a custom orientations vector. It would also be nice to provide more possibilities of how the leadfield dimensions could be combined e.g. L2 norm, sum, maximum etc.

@behinger visualized two possibilities and also suggested: SVD/largest eigenvalue, PCA, monte-carlo, norm, perpendicular.
396269795-ca9077ed-abc6-4768-bb67-5ef5f3e2b947

Here is the code for computing the norm which was part of UnfoldSim before:

function magnitude(lf::AbstractArray{T,3}) where {T<:Real}
    si = size(lf)
    magnitude = fill(NaN, si[1:2])
    for e = 1:si[1]
        for s = 1:si[2]
            magnitude[e, s] = norm(lf[e, s, :])
        end
    end
    return magnitude
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions