|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.abstracts.MatchingAdjacencyMatrix
de.unihalle.informatik.MiToBo.tracking.multitarget.datatypes.impl.ObservationAdjacency
@ALDMetaInfo(export=ALLOWED) public class ObservationAdjacency
An adjacency matrix for observations in a time series used for greedyGourmet-partitioning. Observation of one time point form a partition. Edges are undirected.
Field Summary | |
---|---|
protected int |
totalObservations
total number of observations over all frames |
protected int[] |
votesClutter
|
protected int[] |
votesTarget
|
protected double[][] |
Zadj
adjacency votes matrix: which observations are associated (same track) and how many particles vote for these associations |
Constructor Summary | |
---|---|
ObservationAdjacency(ObservationAdjacency oa)
|
|
ObservationAdjacency(Vector<MultiState<MotionModelID>> observations,
DataAssociationExclusive[][] associations)
Deprecated. |
|
ObservationAdjacency(Vector<MultiState<MotionModelID>> observations,
RBMCDASampleInfo<MotionModelID>[] sampleinfos)
Constructor that initializes the adjacency matrix with the given observations and sets edge weights according to the information from RBMCDA-samples |
Method Summary | |
---|---|
double |
getMaxWeight()
|
double |
getMinWeight()
|
PartitGraphNodeID[] |
getNodes()
Get graph nodes |
double |
getVotesAdjacency(int t1,
int m1,
int t2,
int m2)
|
int |
getVotesClutter(int t,
int m)
|
int |
getVotesTarget(int t,
int m)
|
double |
getWeight(PartitGraphNodeID nodeSrc,
PartitGraphNodeID nodeTgt)
Get weight of edge from nodeSrc to nodeTgt . |
boolean |
isDirected()
Returns true if graph has directed edges, false if undirected |
int |
numOfNodes()
Get number of graph nodes |
void |
setVotesAdjacency(int t1,
int m1,
int t2,
int m2,
double value)
|
void |
setVotesClutter(int t,
int m,
int value)
|
void |
setVotesTarget(int t,
int m,
int value)
|
void |
setWeight(PartitGraphNodeID nodeSrc,
PartitGraphNodeID nodeTgt,
double weight)
Set weight of edge from nodeSrc to nodeTgt . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double[][] Zadj
protected int[] votesClutter
protected int[] votesTarget
protected int totalObservations
Constructor Detail |
---|
public ObservationAdjacency(Vector<MultiState<MotionModelID>> observations, RBMCDASampleInfo<MotionModelID>[] sampleinfos)
observations
- vector of observations. Each entry in the vector corresponds to a time point.sampleinfos
- information from RBMCDA-samples@Deprecated public ObservationAdjacency(Vector<MultiState<MotionModelID>> observations, DataAssociationExclusive[][] associations)
public ObservationAdjacency(ObservationAdjacency oa)
Method Detail |
---|
public int getVotesClutter(int t, int m)
public int getVotesTarget(int t, int m)
public void setVotesClutter(int t, int m, int value)
public void setVotesTarget(int t, int m, int value)
public double getVotesAdjacency(int t1, int m1, int t2, int m2)
public void setVotesAdjacency(int t1, int m1, int t2, int m2, double value)
public int numOfNodes()
AdjacencyMatrix
public double getWeight(PartitGraphNodeID nodeSrc, PartitGraphNodeID nodeTgt)
AdjacencyMatrix
nodeSrc
to nodeTgt
.
public void setWeight(PartitGraphNodeID nodeSrc, PartitGraphNodeID nodeTgt, double weight)
AdjacencyMatrix
nodeSrc
to nodeTgt
.
public PartitGraphNodeID[] getNodes()
AdjacencyMatrix
public boolean isDirected()
AdjacencyMatrix
public double getMaxWeight()
public double getMinWeight()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |