Learn R Programming

msr (version 0.4.4)

msc.level.ind: Compute Indicies for Morse Smale Complex Level

Description

For a given partition id, compute the indices into ms$x belonging to this partition based on a given Morse-Smale complex msLevel.

Usage

msc.level.ind(msLevel, pId, addExtrema=TRUE)

Arguments

msLevel
Morse-Smale complex level object.
pId
Partition id number to compute indices for.
addExtrema
Add the extrema indices of this parttion (default TRUE)

Value

The indicies into ms$x for crystal index.

References

[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.

See Also

msc.nn

Examples

Run this code
  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)  

Run the code above in your browser using DataLab