Learn R Programming

pwlapprox2d

pwlapprox2d approximates continuous univariate functions using adaptive piecewise linear regression. It produces a piecewise linear approximation of a function over a specified domain until the desired accuracy is reached.

You can install the package from your local folder during development using:

```r install.packages(“devtools”) devtools::install(“C:/Users/alasd/OneDrive/Documents/R/Packages/pwlapprox2d”)

Copy Link

Version

Install

install.packages('pwlapprox2d')

Monthly Downloads

122

Version

0.1.0

License

MIT + file LICENSE

Maintainer

John Warwicker

Last Published

November 21st, 2025

Functions in pwlapprox2d (0.1.0)

find_global_optima

Global Optimization of Approximation Error
optimize_main

Core Optimization Function
adaptive_pwl_fit

Adaptive Piecewise Linear Approximation of a Continuous Function
build_pwl_envelope

Construct Piecewise Linear Envelope