isBoundedR: Check for zeros at the right side of a vector of function...

Description Usage Arguments Details Value

Description

Given a vector of n function values and an index ix, check whether values with indices greater than or equal to ix are zero. Returns TRUE if they are, FALSE otherwise.

Usage

1
isBoundedR(f, ix)

Arguments

f

A vector of function values for increasing abscissa values.

ix

An index giving the cutoff for checking for zero.

Details

As in isUnimodal, the values are first scaled to fill [0, 1] and then rounded to four decimal places. Because of this it is still possible to use the "bounded support" constraints with the Gaussian kernel.

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 the constraint is satisfied.


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