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

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/msc.level.ind.R

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

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

Author(s)

Samuel Gerber

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

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)  

msr documentation built on May 30, 2017, 4:23 a.m.