findmax: Function to find the maximum of a vector and its position

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/AuxFunc.R

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)

forensim documentation built on May 30, 2017, 2:34 a.m.

Related to findmax in forensim...