Package mvpa :: Package misc :: Module support :: Class MapOverlap

[hide private]
[frames] | no frames]

# Class MapOverlap

source code

Compute some overlap stats from a sequence of binary maps.

When called with a sequence of binary maps (e.g. lists or arrays) the fraction of mask elements that are non-zero in a customizable proportion of the maps is returned. By default this threshold is set to 1.0, i.e. such an element has to be non-zero in all maps.

Three additional maps (same size as original) are computed:

> - overlap_map: binary map which is non-zero for each overlapping element.

> - spread_map: binary map which is non-zero for each element that is

>     non-zero in any map, but does not exceed the overlap threshold.

> - ovstats_map: map of float with the raw elementwise fraction of overlap.

All maps are available via class members.

Instance Methods | [hide private]

__init__(self, overlap_threshold=1.0) Nothing to be seen here. | source code

__call__(self, maps) Returns fraction of overlapping elements. | source code

Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties | [hide private]

Inherited from `object`: `__class__`

Method Details | [hide private]

### __init__(self, overlap_threshold=1.0)
(Constructor)

source code

Nothing to be seen here.

Overrides: object.__init__