Skip to content

Function: subtractVolumeFromStats() ​

ts
function subtractVolumeFromStats(stats, volume): SufficientStats;

Defined in: src/review/OverlaySummaryService.ts:213

Low-level arithmetic helper that subtracts one volume from a stats object.

Prefer subtractSubjectFromStats when subtracting a known subject from the source NeuroVec. This function cannot infer subject membership from an arbitrary volume, so returned subject metadata is unchanged.

Parameters ​

stats ​

SufficientStats

volume ​

NeuroVol

Returns ​

SufficientStats

Released under the MIT License.