Given a vector of n function values and an index ix, check whether values 1:ix are zero. Returns TRUE if they are, FALSE otherwise.
isBoundedL(f, ix)
A logical value indicating if the constraint is satisfied.
A vector of function values for increasing abscissa values.
An index giving the cutoff for checking for zero.
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.