Skip to content

Periodic spline regression and closed curve reconstruction

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

OlivierBinette/splinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

splinit: Periodic spline regression and closed curve reconstruction

Lifecycle: experimental

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("OlivierBinette/splinit")

Example

Get a sample from a curve.

curve <- function(u) {
  cbind(2*sin(u+1)*cos(2*u) + sin(u), cos(u)+cos(u-2.3))
}
pts = curve(2*pi*(1:100)/100) + rnorm(0, 0.02, n=200)

Find a closed curve approximation.

library(splinit)

pretty::plot(pts, xlab="", ylab="")
pretty::lines(splinit(pts))
#> Warning: executing %dopar% sequentially: no parallel backend registered

About

Periodic spline regression and closed curve reconstruction

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages