|
||||||||
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
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 | |
---|---|
private int[] |
cumulatedObservations
cumulated number of previous observations for each time step, required to determine the individual array sizes in the adjacency matrix |
private PartitGraphNodeID[] |
nodes
|
private int[] |
numObservations
|
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(java.util.Vector<MultiState<MotionModelID>> observations,
DataAssociationExclusive[][] associations)
Deprecated. |
|
ObservationAdjacency(java.util.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 |
---|
private int[] cumulatedObservations
private PartitGraphNodeID[] nodes
private int[] numObservations
protected int totalObservations
protected int[] votesClutter
protected int[] votesTarget
protected double[][] Zadj
Constructor Detail |
---|
public ObservationAdjacency(ObservationAdjacency oa)
@Deprecated public ObservationAdjacency(java.util.Vector<MultiState<MotionModelID>> observations, DataAssociationExclusive[][] associations)
public ObservationAdjacency(java.util.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-samplesMethod Detail |
---|
public double getMaxWeight()
public double getMinWeight()
public PartitGraphNodeID[] getNodes()
AdjacencyMatrix
public double getVotesAdjacency(int t1, int m1, int t2, int m2)
public int getVotesClutter(int t, int m)
public int getVotesTarget(int t, int m)
public double getWeight(PartitGraphNodeID nodeSrc, PartitGraphNodeID nodeTgt)
AdjacencyMatrix
nodeSrc
to nodeTgt
.
public boolean isDirected()
AdjacencyMatrix
public int numOfNodes()
AdjacencyMatrix
public void setVotesAdjacency(int t1, int m1, int t2, int m2, double value)
public void setVotesClutter(int t, int m, int value)
public void setVotesTarget(int t, int m, int value)
public void setWeight(PartitGraphNodeID nodeSrc, PartitGraphNodeID nodeTgt, double weight)
AdjacencyMatrix
nodeSrc
to nodeTgt
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |