ClassToIdx: Get hot sample indices from classes.

Description Usage Arguments Value

Description

Get hot sample indices from classes.

Usage

1
2
ClassToIdx(cls, onehot, f_reduce = NULL, ret.sorted = FALSE,
  fast = TRUE, ...)

Arguments

cls

a vector of classes.

onehot

a onehot table.

f_reduce

function to reduce, if NULL, union is performed.

ret.sorted

return sorted indices.

fast

whether to use faster algorithm when f_reduce is NULL, result is always sorted in this case.

...

arguments passed to f_reduce.

Value

a vector of indices.


imlijunda/AwkwardMLTools documentation built on May 13, 2019, 11:33 a.m.