interpolate_zero {itrimhoch}R 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


[Package itrimhoch version 1.0.0 Index]