VPSPulse Mirrors

High-Performance Open-Source Archive

README

Dcurvature

Dcurvature provides a fast C++/Rcpp implementation of discrete curvature on ordered 2D curves, plus a Shiny app for PCA component selection using curvature-based elbow detection.

Installation

# install.packages("remotes")
remotes::install_local("path/to/Dcurvature")

Core usage

library(Dcurvature)

pts <- cbind(
  x = seq(0, 1, length.out = 12),
  y = sin(seq(0, pi, length.out = 12))
)

kappa <- curvature(pts)
head(kappa)

Example data

x <- load_example_data()
str(x)

Run the app

if (interactive()) {
  run_curvature_app()
}

Need mirroring services?
Contact our team at info@vpspulse.com.

Mirror powered by VPSpulse

Infrastructure sponsored by VPSPulse & Secure Payments by ArionPay.