NLSstClosestX
Inverse Interpolation

Description

Uses inverse linear interpolation to approximate the x value at which the function represented by xy is equal to yval.

Usage

# Generic function 
NLSstClosestX(xy, yval)

## S3 method for class 'sortedXyData': NLSstClosestX(xy, yval)

Arguments

xy a sortedXyData object.
yval the numeric value on the y scale to get close to.
Value
returns a single numeric value on the x scale.
Note
NLSstClosestX() is generic and has only one non-visible method for class "sortedXyData".
See Also
sortedXyData
Examples
DNase.2 <- Sdatasets::DNase[ Sdatasets::DNase$Run == "2", ] 
DN.srt <- sortedXyData( expression(log(conc)), expression(density), DNase.2 ) 
NLSstClosestX( DN.srt, 1.0 ) 
Package stats version 6.1.1-7
Package Index