public class DataAssociationExclusive extends Object implements DataAssociation
unsetAssociation
-method sets the association label of target and observation to 0.Modifier and Type | Field and Description |
---|---|
protected HashMap<Integer,Integer> |
assocObs |
Constructor and Description |
---|
DataAssociationExclusive()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
areAssociated(int target,
int observation)
Determine if target and observation are associated.
|
boolean |
equals(Object o) |
int[] |
getAssociatedObservations(int target)
Get the indices of all observations that are associated with the specified state.
|
int[] |
getAssociatedTargets(int observation)
Get the indices of all targets that are associated with the specified observation.
|
int |
maxAssociatedTargetID()
Get the maximum target id associated by this data association object
|
int |
numOfObservationAssocs(int target)
Get the number of observations that are associated with the specified target
|
int |
numOfTargetAssocs(int observation)
Get the number of targets that are associated with the specified observation
|
void |
setAssociation(int target,
int observation)
Set an association between target and observation.
|
String |
toString() |
void |
unsetAssociation(int target,
int observation)
Unsets the association of the specified observation and state.
|
public void setAssociation(int target, int observation)
DataAssociation
setAssociation
in interface DataAssociation
public void unsetAssociation(int target, int observation)
unsetAssociation
in interface DataAssociation
public boolean areAssociated(int target, int observation)
areAssociated
in interface DataAssociation
public int numOfTargetAssocs(int observation)
DataAssociation
numOfTargetAssocs
in interface DataAssociation
public int numOfObservationAssocs(int target)
DataAssociation
numOfObservationAssocs
in interface DataAssociation
public int[] getAssociatedTargets(int observation)
DataAssociation
getAssociatedTargets
in interface DataAssociation
public int[] getAssociatedObservations(int target)
DataAssociation
getAssociatedObservations
in interface DataAssociation
public int maxAssociatedTargetID()
DataAssociation
maxAssociatedTargetID
in interface DataAssociation
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.