argmin: argmin Argmin function for a vector.

Description Usage Arguments Value

Description

Return the index minimizing distance from v to target.

Usage

1
argmin(v, target = 0)

Arguments

v

The vector to compare to target.

target

The value sought in the vector; default=0.

Value

The index in v of the value which is closest to target.


professorbeautiful/NNTbiomarkerHome documentation built on June 7, 2019, 8:28 a.m.