|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jaer.eventprocessing.tracking.RectangularClusterTracker.Cluster
public class RectangularClusterTracker.Cluster
Nested Class Summary | |
---|---|
class |
RectangularClusterTracker.Cluster.PathPoint
|
Field Summary | |
---|---|
protected java.awt.Color |
color
|
protected float |
distanceToLastEvent
|
protected int |
firstTimestamp
|
protected float |
instantaneousEventRate
|
protected float |
instantaneousISI
|
protected int |
lastTimestamp
|
java.awt.geom.Point2D.Float |
location
location of cluster in pixels |
protected int |
numEvents
|
protected java.util.ArrayList<RectangularClusterTracker.Cluster.PathPoint> |
path
|
protected int |
previousNumEvents
|
protected java.awt.geom.Point2D.Float |
velocity
velocity of cluster in pixels/tick, where tick is timestamp tick (usually microseconds) |
Constructor Summary | |
---|---|
RectangularClusterTracker.Cluster()
|
|
RectangularClusterTracker.Cluster(BasicEvent ev)
|
|
RectangularClusterTracker.Cluster(RectangularClusterTracker.Cluster one,
RectangularClusterTracker.Cluster two)
Constructs a cluster by merging two clusters. |
Method Summary | |
---|---|
void |
addEvent(BasicEvent event)
updates cluster by one event. |
float |
distanceMetric(float dx,
float dy)
|
protected float |
distanceTo(RectangularClusterTracker.Cluster c)
|
float |
getAngle()
|
float |
getAspectRatio()
|
float |
getAverageEventDistance()
|
float |
getAvgEventRate()
|
float |
getAvgISI()
|
java.awt.geom.Point2D.Float |
getBirthLocation()
|
int |
getClusterNumber()
|
java.awt.Color |
getColor()
|
float |
getDistanceFromBirth()
Computes and returns the total absolute distance (shortest path) traveled in pixels since the birth of this cluster |
float |
getDistanceXFromBirth()
|
float |
getDistanceYFromBirth()
|
int |
getLastEventTimestamp()
|
int |
getLifetime()
|
java.awt.geom.Point2D.Float |
getLocation()
|
float |
getMeasuredSizeCorrectedByPerspective()
Computes the size of the cluster based on average event distance and adjusted for perpective scaling. |
java.util.ArrayList<RectangularClusterTracker.Cluster.PathPoint> |
getPath()
|
float |
getRadius()
|
float |
getRadiusCorrectedForPerspective()
|
java.awt.geom.Point2D.Float |
getVelocityPPS()
|
boolean |
isVelocityValid()
|
boolean |
isVisible()
|
void |
setAngle(float angle)
|
void |
setAspectRatio(float aspectRatio)
|
void |
setAverageEventDistance(float averageEventDistance)
|
void |
setAvgEventRate(float avgEventRate)
|
void |
setAvgISI(float avgISI)
|
void |
setBirthLocation(java.awt.geom.Point2D.Float birthLocation)
|
void |
setClusterNumber(int clusterNumber)
|
void |
setColor(java.awt.Color color)
|
void |
setColorAccordingToAge()
Sets color according to age of cluster |
void |
setColorAccordingToClass()
|
void |
setColorAccordingToSize()
Sets color according to measured cluster size |
void |
setColorAutomatically()
|
void |
setLocation(java.awt.geom.Point2D.Float l)
|
void |
setRadius(float r)
the radius of a cluster is the distance in pixels from the cluster center that is the putative model size. |
void |
setVelocityValid(boolean velocityValid)
|
java.lang.String |
toString()
|
void |
updatePath(EventPacket<?> in)
Updates path (historical) information for this cluster, including cluster velocity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.awt.geom.Point2D.Float location
protected java.awt.geom.Point2D.Float velocity
protected java.util.ArrayList<RectangularClusterTracker.Cluster.PathPoint> path
protected java.awt.Color color
protected int numEvents
protected int previousNumEvents
protected int lastTimestamp
protected int firstTimestamp
protected float instantaneousEventRate
protected float instantaneousISI
protected float distanceToLastEvent
Constructor Detail |
---|
public RectangularClusterTracker.Cluster()
public RectangularClusterTracker.Cluster(BasicEvent ev)
public RectangularClusterTracker.Cluster(RectangularClusterTracker.Cluster one, RectangularClusterTracker.Cluster two)
one
- the first clustertwo
- the second clusterMethod Detail |
---|
public int getLastEventTimestamp()
public void addEvent(BasicEvent event)
event
- the eventpublic float distanceMetric(float dx, float dy)
protected final float distanceTo(RectangularClusterTracker.Cluster c)
public float getDistanceFromBirth()
public float getDistanceYFromBirth()
public float getDistanceXFromBirth()
public float getRadiusCorrectedForPerspective()
public final float getRadius()
public void setRadius(float r)
r
- the radius in pixelspublic final java.awt.geom.Point2D.Float getLocation()
public void setLocation(java.awt.geom.Point2D.Float l)
public final boolean isVisible()
public final int getLifetime()
public final void updatePath(EventPacket<?> in)
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.ArrayList<RectangularClusterTracker.Cluster.PathPoint> getPath()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public java.awt.geom.Point2D.Float getVelocityPPS()
public float getAverageEventDistance()
RectangularClusterTracker.mixingFactor
) distance from events to cluster centerpublic void setAverageEventDistance(float averageEventDistance)
getAverageEventDistance()
public float getMeasuredSizeCorrectedByPerspective()
public void setColorAccordingToSize()
public void setColorAccordingToAge()
public void setColorAccordingToClass()
public void setColorAutomatically()
public int getClusterNumber()
public void setClusterNumber(int clusterNumber)
public float getAvgISI()
public void setAvgISI(float avgISI)
public float getAvgEventRate()
public void setAvgEventRate(float avgEventRate)
public float getAspectRatio()
public void setAspectRatio(float aspectRatio)
public float getAngle()
public void setAngle(float angle)
public java.awt.geom.Point2D.Float getBirthLocation()
public void setBirthLocation(java.awt.geom.Point2D.Float birthLocation)
public boolean isVelocityValid()
public void setVelocityValid(boolean velocityValid)
|
jAER project on SourceForge | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |