Main Content

partitionByIndex

Partition randomPatchExtractionDatastore according to indices

Description

patchds2 = partitionByIndex(patchds,ind) partitions a subset of observations in a random patch extraction datastore, patchds, into a new datastore, patchds2. The desired observations are specified by indices, ind.

Input Arguments

collapse all

Random patch extraction datastore, specified as a randomPatchExtractionDatastore object.

Indices of observations, specified as a vector of positive integers.

Output Arguments

collapse all

Output datastore, returned as a randomPatchExtractionDatastore object containing a subset of files from patchds.

Introduced in R2018b