find_zeros_cross: Find first zeros

View source: R/functions_range.R

find_first_zero_crossR Documentation

Find first zeros

Description

For each column of smoothing matrix, determines smallest distance that corresponds with a negative smoothing weight

Usage

find_first_zero_cross(x)

find_zeros_cross(D, S)

Arguments

x

Function values, assumed to be ordered

D

Distance matrix, or a subset of columns from a distance matrix.

S

Smoothing matrix, or a subset of columns from a smoothing matrix.

Value

Index of first value of x that lies below 0. Decimal values will be returned using a simple interpolation of the two values straddling 0.


jpkeller/spconf documentation built on March 11, 2024, 9:32 a.m.