Function to find the maximum of a vector and its position

Description

The findmax function finds the maximum of a vector and its position.

Usage

1
findmax(vec)

Arguments

vec

a numeric vector

Details

findmax finds the maximum value of a vector and its position.

Value

A matrix of two columns:
max the position of the maximum in vec
maxval the maximum

Note

findmax is an auxiliary function for the dataL function, used to compute the likelihood of the observed alleles in a mixed DNA stain given the number of contributors.

Author(s)

Hinda Haned <h.haned@nfi.minvenj.nl>

Examples

1
findmax(1:10)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.