reduce: Reducing function for BrcFmri object given parcellation

Description Usage Arguments Value

Description

Reduces the BrcFmri object passed in based on applying a function over each partition specified by a given BrcParcellation object. Both the BrcFmri and BrcParcellation must have the same dimensions.

Usage

1
reduce(fmri, parcellation, func = reduce_mean)

Arguments

fmri

The BrcFmri object to reduce

parcellation

The BrcParcellation object to use as a parcellation

func

The function to apply to each partition of parcellation in fmri

Value

A BrcFmri object with the reduced data2d object, the same id as fmri, and the parcellation of parcellation


cdgreenidge/brcbase documentation built on May 13, 2019, 2:40 p.m.