dchristop/inflection: UIK inclusion for knee point finding
In: oai:zenodo.org:3538801; (2019)
Online
Elektronische Ressource
Zugriff:
Overview inflection is a package that finds the inflection point of a planar curve which is given as a data frame of discrete (xi,yi) points. Basic functions are: ese() Extremum Surface Estimator bese() Bisection Extremum Surface Estimator ede() Extremum Distance Estimator bede() Bisection Extremum Distance Estimator findiplist() performs both ESE and EDE check_curve() checks a curve for its convexity type uik() finds the UIK estimation for elbow or knee point of a curve d2uik() performs UIK method on the approximation of second order derivatives Install the inflection package and then read vignettes: vignette('inflection', package ='inflection') vignette('inflectionDevelopingMethods', package ='inflection') vignette('inflectionMissionImpossible', package ='inflection') Installation # Install with dependencies: install.packages('inflection',dependencies=TRUE) # Install from GitHub: devtools::install_github('dchristop/inflection') Usage library(inflection) data("table_01") x=table_01$x y=table_01$y plot(x,y,col='blue',pch=19,cex=0.25) cc=check_curve(x,y) cc # $ctype # [1] "convex_concave" # # $index # [1] 0 ipese=ese(x,y,cc$index);ipese # j1 j2 chi # ESE 170 332 5 ipbese=bese(x,y,cc$index);ipbese # $iplast # [1] 5 # # $iters # n a b ESE # 1 501 2.000 8.000 5 # 2 163 4.556 5.444 5 # 3 75 4.784 5.216 5 # 4 37 4.892 5.108 5 # 5 19 4.952 5.048 5 # 6 9 4.976 5.024 5 # 7 5 4.988 5.012 5 ipede=ede(x,y,cc$index);ipede # j1 j2 chi # EDE 155 347 5 ipbede=bede(x,y,cc$index);ipbede # $iplast # [1] 5 # # $iters # n a b EDE # 1 501 2.000 8.000 5 # 2 193 4.400 5.600 5 # 3 101 4.664 5.336 5 # 4 57 4.808 5.192 5 # 5 33 4.892 5.108 5 # 6 19 4.940 5.060 5 # 7 11 4.964 5.036 5 # 8 7 4.976 5.024 5 # 9 5 4.988 5.012 5 ipall=findiplist(x,y,cc$index);ipall # j1 j2 chi # ESE 170 332 5 # EDE 155 347 5 abline(v=ipese[,3],lty=2) abline(v=ipede[,3],lty=3,col='red') # Why should I use inflection package in R? Because it does not imply any kind of functional hypothesis for the data under examination Because it can give you an estimation ...
Titel: |
dchristop/inflection: UIK inclusion for knee point finding
|
---|---|
Autor/in / Beteiligte Person: | Christopoulos, Demetris |
Link: | |
Quelle: | oai:zenodo.org:3538801; (2019) |
Veröffentlichung: | 2019 |
Medientyp: | Elektronische Ressource |
DOI: | 10.5281/zenodo.3538801 |
Sonstiges: |
|