GridRanks

org.appliedtopology.tda4j.GridRanks
See theGridRanks companion object
class GridRanks

The pixel (top cell) values of a cubical grid with their dense ranks: distinct holds the distinct values in ascending java.lang.Double.compare order, and rank(p) is the position of pixel p's value in it. In the T-construction every cell takes the smallest value of the pixels containing it, so every cell's value is some pixel's and its rank is the smallest rank among those pixels: the grid engines order cells by integer ranks and look the values up only to report them or compare them.

Pixels are row-major, the last axis fastest. A NaN pixel is masked (not in the complex, see CubicalGridStream): it has no place in distinct and its rank is masked, one past every real rank. A minimum over ranks therefore skips masked pixels, and a cell's rank is masked exactly when every pixel containing it is masked.

Attributes

Companion
object
Experimental
true
Source
GridRanks.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def d: Int

Attributes

Source
GridRanks.scala
def masked: Int

The rank of a masked (NaN) pixel, and of a cell all of whose pixels are masked: distinct.length.

The rank of a masked (NaN) pixel, and of a cell all of whose pixels are masked: distinct.length.

Attributes

Source
GridRanks.scala
def size: Int

Attributes

Source
GridRanks.scala

Concrete fields

val distinct: Array[Double]

Attributes

Source
GridRanks.scala
val pixels: Array[Double]

Attributes

Source
GridRanks.scala
val rank: Array[Int]

Attributes

Source
GridRanks.scala
val shape: Array[Int]

Attributes

Source
GridRanks.scala