isUnimodal: Check for unimodality of function values.

Description Usage Arguments Details Value

Description

Given a set of function values for increasing abscissa values, we call this unimodal if there are zero or one values that are greater than all of their neighbors. Before checking for modes, the values are scaled to fill [0, 1] and then rounded to four decimal places. This eliminates unwanted detection of tiny differences as modes.

Usage

1

Arguments

f

A vector of function values for increasing abscissa values.

Details

This function is intended to be called from other functions in the scdensity package. It does not implement any argument checking.

Value

A logical value indicating if unimodality is satisfied.


scdensity documentation built on May 1, 2019, 10:26 p.m.