get_inds_smallest_k: Get the indices of the smallest k elements of v. This code...

Description Usage Arguments Value

Description

Get the indices of the smallest k elements of v. This code currently assumes that k >= length(v)

Usage

1

Arguments

v

a vector

k

number of indices to return

Value

a vector of length k containing the indices of the k smallest elements of v, in ascending order.


reichlab/kcde documentation built on May 27, 2019, 4:53 a.m.