# Load the pwlapprox2d package
library(pwlapprox2d)
# Run optimization (example: Sigmoid)
res <- optimize_main(
choice = 1,
accuracy = 0.0274,
init_points = 200,
max_iter = 20,
verbose = FALSE
)
# Extract breakpoint coordinates
bp <- res$breakpoints_coords
# Print table of x,y coordinates
cat("x,y\n")## x,y
## -7,-0.0264889488055993
## -2.0020248554093,0.0916688841206033
## 0.917690815957223,0.687171359985721
## 7,1.0264889488056
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.