Matching

org.appliedtopology.tda4j.BarcodeDistance.Matching
final case class Matching(pairs: Vector[(Int, Int)], leftToDiagonal: Vector[Int], rightToDiagonal: Vector[Int], cost: Double)

An optimal matching of two diagrams: bar i of the first diagram is matched to bar j of the second for each (i, j) of pairs; the bars in leftToDiagonal and rightToDiagonal (indices into the diagrams as given) are matched to the diagonal, that is, left unmatched; cost is the distance the matching realizes.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala