CofaceSimplexStream

org.appliedtopology.tda4j.CofaceSimplexStream
See theCofaceSimplexStream companion object
trait CofaceSimplexStream[VertexT, FiltrationT] extends LevelwiseSimplexStream[VertexT, FiltrationT]

A levelwise stream that builds dimension d + 1 from the simplices it kept in dimension d (their cofaces), caching the two dimensions it is working between. The machinery behind VietorisRips, Cech, Witness, Dowker, DtmRips and SparseRips; extend it (usually through RipserCofaceSimplexStream's filtrationValueOverride) to build a new filtered complex on the same coface loop. Any stream must keep the ordering contract of CellStream.

Attributes

Companion
object
Experimental
true
Source
SimplexStream.scala
Graph
Supertypes
trait LevelwiseSimplexStream[VertexT, FiltrationT]
trait StratifiedCellStream[Simplex[VertexT], FiltrationT]
trait CellStream[Simplex[VertexT], FiltrationT]
trait IterableOnce[Simplex[VertexT]]
trait Filtration[Simplex[VertexT], FiltrationT]
trait Filterable[FiltrationT]
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Abstract methods

def currentDimension: Int

Attributes

Source
SimplexStream.scala
def currentDimensionCache: Seq[Simplex[VertexT]]

Attributes

Source
SimplexStream.scala
def keepCriterion: PartialFunction[Simplex[VertexT], Boolean]

Which simplices the stream keeps, besides the threshold: a vertex, an edge or a higher simplex is kept when this returns true (a simplex it is not defined at is kept).

Which simplices the stream keeps, besides the threshold: a vertex, an edge or a higher simplex is kept when this returns true (a simplex it is not defined at is kept).

'''The criterion must be closed under faces''': every face of a simplex it keeps, a vertex or an edge among them, is kept too. That is what makes the kept simplices a simplicial complex, which every engine needs for ∂∂ = 0. It is not checked, and a criterion that breaks it gives a stream whose cells, order and bars are not defined.

Attributes

Source
SimplexStream.scala
def lastDimensionCache: Seq[Simplex[VertexT]]

Attributes

Source
SimplexStream.scala

Inherited methods

def homologyDegreeLimit: Option[Int]

Some(k) for a complex cut off to compute homology in degrees 0..k (what VietorisRips(points, maxDimension = k) returns, holding cells up to dimension k + 1): its higher degrees are not the homology of the full complex. None (the default) for a complete complex.

Some(k) for a complex cut off to compute homology in degrees 0..k (what VietorisRips(points, maxDimension = k) returns, holding cells up to dimension k + 1): its higher degrees are not the homology of the full complex. None (the default) for a complete complex.

Attributes

Inherited from:
StratifiedCellStream
Source
SimplexStream.scala
override def iterator: Iterator[Simplex[VertexT]]

All the cells, dimension by dimension. Stops at the first undefined dimension (takeWhile, never filter, which would search forever past the last one).

All the cells, dimension by dimension. Stops at the first undefined dimension (takeWhile, never filter, which would search forever past the last one).

Attributes

Definition Classes
StratifiedCellStream -> IterableOnce
Inherited from:
StratifiedCellStream
Source
SimplexStream.scala
def knownSize: Int

The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

The number of elements in this collection, if it can be cheaply computed, -1 otherwise. Cheaply usually means: Not requiring a collection traversal.

Attributes

Inherited from:
IterableOnce
Source
IterableOnce.scala
def stepper[S <: Stepper[_]](implicit shape: StepperShape[Simplex[VertexT], S]): S

Returns a scala.collection.Stepper for the elements of this collection.

Returns a scala.collection.Stepper for the elements of this collection.

The Stepper enables creating a Java stream to operate on the collection, see scala.jdk.StreamConverters. For collections holding primitive values, the Stepper can be used as an iterator which doesn't box the elements.

The implicit scala.collection.StepperShape parameter defines the resulting Stepper type according to the element type of this collection.

  • For collections of Int, Short, Byte or Char, an scala.collection.IntStepper is returned
  • For collections of Double or Float, a scala.collection.DoubleStepper is returned
  • For collections of Long a scala.collection.LongStepper is returned
  • For any other element type, an scala.collection.AnyStepper is returned

Note that this method is overridden in subclasses and the return type is refined to S with EfficientSplit, for example scala.collection.IndexedSeqOps.stepper. For Steppers marked with scala.collection.Stepper.EfficientSplit, the converters in scala.jdk.StreamConverters allow creating parallel streams, whereas bare Steppers can be converted only to sequential streams.

Attributes

Inherited from:
IterableOnce
Source
IterableOnce.scala

Inherited and Abstract methods

def filtrationOrdering: Ordering[Simplex[VertexT]]

Attributes

Inherited from:
CellStream
Source
SimplexStream.scala
def filtrationValue: PartialFunction[Simplex[VertexT], FiltrationT]

Attributes

Inherited from:
Filtration
Source
SimplexStream.scala
def iterateDimension: PartialFunction[Int, Iterator[Simplex[VertexT]]]

The cells of dimension d, oldest first. The domain must be contiguous from 0 (0, 1, ..., k, or empty, or all of the naturals): iterator stops at the first dimension where this is undefined.

The cells of dimension d, oldest first. The domain must be contiguous from 0 (0, 1, ..., k, or empty, or all of the naturals): iterator stops at the first dimension where this is undefined.

Attributes

Inherited from:
StratifiedCellStream
Source
SimplexStream.scala
def largest: FiltrationT

Attributes

Inherited from:
Filterable
Source
SimplexStream.scala
def smallest: FiltrationT

Attributes

Inherited from:
Filterable
Source
SimplexStream.scala