Description Usage Arguments Value Author(s) References See Also Examples
View source: R/msc.level.ind.R
For a given partition id, compute the indices into ms$x belonging to this
partition based on a given Morse-Smale complex msLevel
.
1 | msc.level.ind(msLevel, pId, addExtrema=TRUE)
|
msLevel |
Morse-Smale complex level object. |
pId |
Partition id number to compute indices for. |
addExtrema |
Add the extrema indices of this parttion (default TRUE) |
The indicies into ms$x
for crystal index.
Samuel Gerber
[1] Samuel Gerber and Kristin Potter The Morse-Smale Complex for Data Analysis, Journal of Statistical Software, 2012, vol. 50, no. 2, pp 1-22
[2] Samuel Gerber, Oliver Ruebel Peer-Timo Bremer, Valerio Pascucci, Ross Whitaker, Morse-Smale Regression, Journal of Computational and Graphical Statistics, 2012
[3] Samuel Gerber, Peer-Timo Bremer, Valerio Pascucci, Ross Whitaker, Visual Exploration of High Dimensional Scalar Functions, IEEE Transactions on Visualization and Computer Graphics, vol. 16, no. 6, pp 1271-1280, Nov.-Dec. 2010.
1 2 3 4 5 6 7 8 9 | data(fourpeaks)
d <- fourpeaks()
ms <- msc.nn(y=d[,1], x=d[, 2:3], knn=10, pLevelP = 0.1)
#compute the indices belonging to partition Id 2 at Morse-Smale persistence
ind <- msc.level.ind(ms$level[[1]], 2)
ms <- msc.nn(y=d[,1], x=d[, 2:3], knn=10, nLevels=10)
#compute the indices belonging to partition Id 2 at Morse-Smale persistence level 3
ind <- msc.level.ind(ms$level[[3]], 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.