Cube

org.appliedtopology.tda4j.Cubical$package.Cube
object Cube extends CubeInstances

Attributes

Experimental
true
Source
Cubical.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Cube.type

Members list

Value members

Concrete methods

def apply(lower: Seq[Int], nondegenerate: Set[Int]): Cube

General constructor: lower gives each axis's lower lattice coordinate, nondegenerate marks which axes are unit intervals (every other axis is a degenerate point at its own lower value).

General constructor: lower gives each axis's lower lattice coordinate, nondegenerate marks which axes are unit intervals (every other axis is a degenerate point at its own lower value).

Attributes

Source
Cubical.scala
def fromEncoded(coords: Seq[Int]): Cube

The primitive constructor every other one below reduces to: direct doubled-coordinate encoding (2*a = degenerate {a}, 2*a+1 = unit interval [a,a+1]), one entry per ambient axis.

The primitive constructor every other one below reduces to: direct doubled-coordinate encoding (2*a = degenerate {a}, 2*a+1 = unit interval [a,a+1]), one entry per ambient axis.

Attributes

Source
Cubical.scala
def fromEncoded(coords: Int*): Cube

Attributes

Source
Cubical.scala
def unapplySeq(cube: Cube): Option[Seq[Int]]

Attributes

Source
Cubical.scala
def unitCube(coords: Seq[Int]): Cube

The top-dimensional cube (every axis non-degenerate) whose lower corner sits at lattice point coords -- e.g. the cube corresponding to pixel/voxel coords in a dense grid.

The top-dimensional cube (every axis non-degenerate) whose lower corner sits at lattice point coords -- e.g. the cube corresponding to pixel/voxel coords in a dense grid.

Attributes

Source
Cubical.scala
def unitCube(coords: Int*): Cube

Attributes

Source
Cubical.scala
def vertex(coords: Seq[Int]): Cube

The vertex (0-dimensional cube, every axis degenerate) at integer lattice point coords.

The vertex (0-dimensional cube, every axis degenerate) at integer lattice point coords.

Attributes

Source
Cubical.scala
def vertex(coords: Int*): Cube

Attributes

Source
Cubical.scala

Inherited methods

def fromVector(coords: Vector[Int]): Cube

The cube with these doubled coordinates (the companion spelling of .asCube).

The cube with these doubled coordinates (the companion spelling of .asCube).

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala
def isOrderedCell(order: Ordering[Cube]): is[Cube, OrderedCell]

A Cube is OrderedCell instance with a chosen order (cubeIsOrderedCell).

A Cube is OrderedCell instance with a chosen order (cubeIsOrderedCell).

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala
def ordering: Ordering[Cube]

The default order on cubes (cubeOrdering).

The default order on cubes (cubeOrdering).

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala

Givens

Inherited givens

given cubeOrderingFromCell: is[Cube, OrderedCell] => Ordering[Cube]

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala
given cubeShow: Show[Cube]

cube.show: the product of its intervals, Cube([0,1]x{2}) (a degenerate axis {a}, an interval [a,a+1]).

cube.show: the product of its intervals, Cube([0,1]x{2}) (a degenerate axis {a}, an interval [a,a+1]).

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala

Attributes

Inherited from:
CubeInstances
Source
CubicalOrderedCell.scala

Extensions

Extensions

extension (c: Cube)
def encoded: Vector[Int]

Attributes

Source
Cubical.scala
extension (c: Cube)
def ambientDim: Int

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def isDegenerate(axis: Int): Boolean

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def isNondegenerate(axis: Int): Boolean

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def isTop: Boolean

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def isVertex: Boolean

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def latticeCoordinates: Seq[Int]

Lattice coordinates: for a top-dimensional cube (every axis non-degenerate) this is exactly the pixel/voxel grid index it corresponds to.

Lattice coordinates: for a top-dimensional cube (every axis non-degenerate) this is exactly the pixel/voxel grid index it corresponds to.

Attributes

Source
Cubical.scala
def lowerCoordinate(axis: Int): Int

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def nondegenerateAxes: Seq[Int]

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala
def show: String

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Ergonomic accessors, kept distinct from dim/boundary (which live on the OrderedCell instance below, per Simplex.scala's own convention of putting the Cell/OrderedCell contract methods only there).

Attributes

Source
Cubical.scala