public class ObservationAdjacency extends MatchingAdjacencyMatrix
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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 . |
protected double[][] Zadj
protected int[] votesClutter
protected int[] votesTarget
protected int totalObservations
private int[] numObservations
private int[] cumulatedObservations
private PartitGraphNodeID[] nodes
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)
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()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.