Package one.microstream.util.similarity
Class MultiMatch.Default<E>
java.lang.Object
one.microstream.util.similarity.MultiMatch.Default<E>
- All Implemented Interfaces:
MultiMatch<E>
- Enclosing interface:
- MultiMatch<E>
public static class MultiMatch.Default<E> extends Object implements MultiMatch<E>
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.util.similarity.MultiMatch
MultiMatch.Default<E>
-
Constructor Summary
Constructors Modifier Constructor Description protected
Default(MultiMatcher<E> matcher, E[] source, E[] target)
-
Method Summary
Modifier and Type Method Description MultiMatchAssembler<E>
assembler()
double
averageSimilarity()
protected void
buildSimilarityMatrix()
protected void
calculateCandidateCount()
static int
calculateMatchCount(int[] s2tMapping)
double
highestSimilarity()
protected void
initializeLinkingArray()
protected void
initializeSimilarityArrays()
protected void
link(int s, int t)
protected void
linkAllEquals(Equalator<? super E> equalator)
protected void
linkAllPerfect()
protected void
linkAllSimilar(Similator<? super E> similator)
protected boolean
linkAllUnconflicted()
protected void
linkOneBestMatch()
protected void
linkOneMatched(int s, int t)
double
lowestSimilarity()
protected MultiMatch.Default<E>
match()
static double
maxSourceQuantifier(double[][] quantifiers, int t)
static double
maxTargetQuantifier(double[] sTargets)
protected void
removeNoise()
protected void
removeOne(int[] sCandCount, int[] tCandCount, int s, int t)
protected boolean
resolveOneSourceSingleton()
protected boolean
resolveOneTargetSingleton()
MultiMatchResult<E>
result()
double
similarityThreshold()
double
singletonPrecedenceBonus()
double
singletonPrecedenceThreshold()
-
Constructor Details
-
Method Details
-
calculateMatchCount
public static int calculateMatchCount(int[] s2tMapping) -
maxTargetQuantifier
public static double maxTargetQuantifier(double[] sTargets) -
maxSourceQuantifier
public static double maxSourceQuantifier(double[][] quantifiers, int t) -
similarityThreshold
public double similarityThreshold()- Specified by:
similarityThreshold
in interfaceMultiMatch<E>
-
singletonPrecedenceThreshold
public double singletonPrecedenceThreshold()- Specified by:
singletonPrecedenceThreshold
in interfaceMultiMatch<E>
-
singletonPrecedenceBonus
public double singletonPrecedenceBonus()- Specified by:
singletonPrecedenceBonus
in interfaceMultiMatch<E>
-
averageSimilarity
public double averageSimilarity()- Specified by:
averageSimilarity
in interfaceMultiMatch<E>
-
lowestSimilarity
public double lowestSimilarity()- Specified by:
lowestSimilarity
in interfaceMultiMatch<E>
-
highestSimilarity
public double highestSimilarity()- Specified by:
highestSimilarity
in interfaceMultiMatch<E>
-
initializeLinkingArray
protected void initializeLinkingArray() -
initializeSimilarityArrays
protected void initializeSimilarityArrays() -
buildSimilarityMatrix
protected void buildSimilarityMatrix() -
link
protected void link(int s, int t) -
linkOneMatched
protected void linkOneMatched(int s, int t) -
linkAllEquals
-
linkAllSimilar
-
linkAllPerfect
protected void linkAllPerfect() -
linkAllUnconflicted
protected boolean linkAllUnconflicted() -
resolveOneSourceSingleton
protected boolean resolveOneSourceSingleton() -
resolveOneTargetSingleton
protected boolean resolveOneTargetSingleton() -
linkOneBestMatch
protected void linkOneBestMatch() -
calculateCandidateCount
protected void calculateCandidateCount() -
removeOne
protected void removeOne(int[] sCandCount, int[] tCandCount, int s, int t) -
removeNoise
protected void removeNoise() -
match
-
result
- Specified by:
result
in interfaceMultiMatch<E>
-
assembler
- Specified by:
assembler
in interfaceMultiMatch<E>
-