FlagGenerator

org.appliedtopology.tda4j.LayeredInorderSimplexStream.FlagGenerator
See theFlagGenerator companion class
object FlagGenerator

Attributes

Companion
class
Source
LayeredInorderSimplexStream.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class Edges(a: Array[Int], b: Array[Int], weight: Array[Double])

The edges of a graph as three parallel arrays, a(i) < b(i) with weight weight(i), in no particular order.

The edges of a graph as three parallel arrays, a(i) < b(i) with weight weight(i), in no particular order.

Attributes

Source
LayeredInorderSimplexStream.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def edgesWithin(n: Int, distance: (Int, Int) => Double, threshold: Double): Edges

The edges of the complete graph on 0 until n with distance as weight, those within threshold. The distance is asked as distance(larger, smaller), the lower triangle that ripser.cpp and ExplicitMetricSpace read, and which is along a row of a cached matrix.

The edges of the complete graph on 0 until n with distance as weight, those within threshold. The distance is asked as distance(larger, smaller), the lower triangle that ripser.cpp and ExplicitMetricSpace read, and which is along a row of a cached matrix.

Attributes

Source
LayeredInorderSimplexStream.scala
def ofEdges(n: Int, a: Array[Int], b: Array[Int], weight: Array[Double], threshold: Double, candidates: Candidates = ..., deadline: Array[Double] = ...): FlagGenerator

A generator for the flag complex of the graph on 0 until n with the edges (a(i), b(i)) of weight weight(i). Edges heavier than threshold, or than the deadline of one of their ends, are left out, since they would be no simplices; the ends may come in either order.

A generator for the flag complex of the graph on 0 until n with the edges (a(i), b(i)) of weight weight(i). Edges heavier than threshold, or than the deadline of one of their ends, are left out, since they would be no simplices; the ends may come in either order.

Attributes

Throws
IllegalArgumentException

for an end outside 0 until n, a loop, an edge listed twice, or a weight that is not a number

Source
LayeredInorderSimplexStream.scala