interpolate_zero: Calculate the x-coordinates of a function where zero...

View source: R/Rfun_interpolate_zero.R

interpolate_zeroR Documentation

Calculate the x-coordinates of a function where zero crossings occur

Description

Calculate the x-coordinates of a function where zero crossings occur

Usage

interpolate_zero(values, x = NULL)

Arguments

values

a numeric vector representing the function's output at specific points

x

Aa vector of x-coordinates corresponding to the values. If not provided, it defaults to 1:length(values)

Value

the x-coordinates where zero crossings occur. If no crossings are found, it returns NA


itrimhoch documentation built on June 8, 2025, 11:54 a.m.