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

Description Usage Arguments Details Value Note Author(s) Examples

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)


Search within the forensim package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.