Package microsim.matching
Class GlobalMatching<T>
java.lang.Object
microsim.matching.GlobalMatching<T>
- Type Parameters:
T- agent type.
MATCHING CLASS BASED ON THE ITERATIVE RANDOM MATCHING CLASS
Whereas the IterativeRandomMatching class matches units in collection1 to those in collection2 in order of collection1
the current class evaluates all potential match combinations between collection1 and collection2 and proceeds to
select matches from lowest to highest "score". The routine is consequently agnostic concerning the order of each collection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlobalMatchingmatching(Collection<T> collection1, org.apache.commons.collections4.Predicate<T> filter1, Collection<T> collection2, org.apache.commons.collections4.Predicate<T> filter2, MatchingScoreClosure<T> doubleClosure, MatchingClosure<T> matching)
-
Method Details
-
matching
public org.apache.commons.math3.util.Pair<Set<T>,Set<T>> matching(Collection<T> collection1, org.apache.commons.collections4.Predicate<T> filter1, Collection<T> collection2, org.apache.commons.collections4.Predicate<T> filter2, MatchingScoreClosure<T> doubleClosure, MatchingClosure<T> matching) -
getInstance
-