find_first_zero_cross: Find zero

View source: R/functions_range.R

find_first_zero_crossR Documentation

Find zero

Description

Calculates the zero of a function by linear interpolation between the first two points either side of zero.

Usage

find_first_zero_cross(x)

Arguments

x

Function values, assumed to be ordered

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.

See Also

find_zeros_cross, compute_effective_range


jpkeller/spconf documentation built on Oct. 20, 2024, 2 a.m.