public class ClusterMatrix extends java.lang.Object implements PrettyPrint
Constructor and Description |
---|
ClusterMatrix(Base base)
Initializes the cluster by taking the relations of the base as a
reference
|
Modifier and Type | Method and Description |
---|---|
java.util.SortedSet<java.lang.Integer> |
getClusterIds()
|
int |
getTimeId(int clusterId)
|
java.util.HashSet<java.lang.Integer> |
getTransactionIds(int clusterId)
|
void |
optimizeMatrix(Base base,
java.util.Set<java.lang.Integer> transactionIds)
Rebinds the cluster-transaction matrix by removing the
transactions not present in transactionIds and adding the one which are
Lcm::UpdateOccurenceDeriver(const Database &database, const vector<int>
&transactionList, OccurenceDeriver &occurence); |
java.lang.String |
toPrettyString()
Displays a prettified version of
Object.toString()
It's used as display by Debug if
it's implemented.
|
java.lang.String |
toString()
|
public ClusterMatrix(Base base)
base
- Initial base referencepublic int getTimeId(int clusterId)
clusterId
- cluster's identifierpublic java.util.HashSet<java.lang.Integer> getTransactionIds(int clusterId)
clusterId
- cluster's identifierHashSet
public java.util.SortedSet<java.lang.Integer> getClusterIds()
public void optimizeMatrix(Base base, java.util.Set<java.lang.Integer> transactionIds)
Lcm::UpdateOccurenceDeriver(const Database &database, const vector<int>
&transactionList, OccurenceDeriver &occurence);
base
- Reference base to retrieve the bindingstransactionIds
- Transactions which need to be present in the
matrix
public java.lang.String toPrettyString()
PrettyPrint
Object.toString()
It's used as display by Debug
if it's
implemented.
toPrettyString
in
interface PrettyPrint
Object.toString()
public java.lang.String toString()
toString
in class java.lang.Object