MCPcopy
hub / github.com/mne-tools/mne-python / sum

Method sum

mne/source_estimate.py:1037–1056  ·  view source on GitHub ↗

Make a summary stc file with sum over time points. Returns ------- stc : SourceEstimate | VectorSourceEstimate The modified stc.

(self)

Source from the content-addressed store, hash-verified

1035 return out
1036
1037 def sum(self):
1038 """Make a summary stc file with sum over time points.
1039
1040 Returns
1041 -------
1042 stc : SourceEstimate | VectorSourceEstimate
1043 The modified stc.
1044 """
1045 data = self.data
1046 tmax = self.tmin + self.tstep * data.shape[-1]
1047 tmin = (self.tmin + tmax) / 2.0
1048 tstep = tmax - self.tmin
1049 sum_stc = self.__class__(
1050 self.data.sum(axis=-1, keepdims=True),
1051 vertices=self.vertices,
1052 tmin=tmin,
1053 tstep=tstep,
1054 subject=self.subject,
1055 )
1056 return sum_stc
1057
1058 def __sub__(self, a):
1059 """Subtract source estimates."""

Callers 15

meanMethod · 0.95
solverFunction · 0.45
order_funcFunction · 0.45
stat_funFunction · 0.45
generate_credit_rstFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected