|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.unizh.ini.jaer.projects.pawtracker.PawTracker.Cluster
public class PawTracker.Cluster
Represents a single tracked object
| 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 |
MAX_PATH_LENGTH
|
protected int |
numEvents
|
protected java.util.ArrayList<java.awt.geom.Point2D.Float> |
path
|
protected int |
type
|
java.awt.geom.Point2D.Float |
velocity
velocity of cluster in pixels/tick, where tick is timestamp tick (usually microseconds) |
| Constructor Summary | |
|---|---|
PawTracker.Cluster()
|
|
PawTracker.Cluster(int x,
int y,
int type,
int numEvents,
int timestamp,
int radius)
|
|
PawTracker.Cluster(PawTracker.Cluster one,
PawTracker.Cluster two)
Constructs a cluster by merging two clusters. |
|
PawTracker.Cluster(TypedEvent ev)
|
|
| Method Summary | |
|---|---|
void |
addEvent(BasicEvent event)
|
float |
distanceMetric(float dx,
float dy)
|
protected float |
distanceTo(PawTracker.Cluster c)
|
float |
getAspectRatio()
|
float |
getAverageEventDistance()
|
float |
getAvgEventRate()
|
float |
getAvgISI()
|
int |
getClusterNumber()
|
java.awt.Color |
getColor()
|
int |
getEntryZoneXa()
|
int |
getEntryZoneXb()
|
int |
getEntryZoneYa()
|
int |
getEntryZoneYb()
|
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. |
int |
getNbEvents()
|
int |
getNbOppositeEvents()
|
java.util.ArrayList<java.awt.geom.Point2D.Float> |
getPath()
|
float |
getRadius()
|
float |
getRadiusCorrectedForPerspective()
|
int |
getType()
|
java.awt.geom.Point2D.Float |
getVelocity()
|
void |
incNbEvents()
|
void |
incNbOppositeEvents()
|
boolean |
isVisible()
|
void |
resetNbEvents()
|
void |
setAspectRatio(float aspectRatio)
|
void |
setAverageEventDistance(float averageEventDistance)
|
void |
setAvgEventRate(float avgEventRate)
|
void |
setAvgISI(float avgISI)
|
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 |
setNbEvents(int nbEvents)
|
void |
setNbOppositeEvents(int nbOppositeEvents)
|
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 |
setType(int type)
|
void |
setTypeAndColor(int type)
|
java.lang.String |
toString()
|
void |
updatePath()
|
| 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
public java.awt.geom.Point2D.Float velocity
protected final int MAX_PATH_LENGTH
protected java.util.ArrayList<java.awt.geom.Point2D.Float> path
protected java.awt.Color color
protected int type
protected int numEvents
protected int lastTimestamp
protected int firstTimestamp
protected float instantaneousEventRate
protected float instantaneousISI
protected float distanceToLastEvent
| Constructor Detail |
|---|
public PawTracker.Cluster()
public PawTracker.Cluster(TypedEvent ev)
public PawTracker.Cluster(int x,
int y,
int type,
int numEvents,
int timestamp,
int radius)
public PawTracker.Cluster(PawTracker.Cluster one,
PawTracker.Cluster two)
one - the first clustertwo - the second cluster| Method Detail |
|---|
public void resetNbEvents()
public int getLastEventTimestamp()
public void addEvent(BasicEvent event)
public float distanceMetric(float dx,
float dy)
protected final float distanceTo(PawTracker.Cluster c)
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()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.ArrayList<java.awt.geom.Point2D.Float> getPath()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
public int getType()
public void setType(int type)
public void setTypeAndColor(int type)
public java.awt.geom.Point2D.Float getVelocity()
public float getAverageEventDistance()
PawTracker.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 int getEntryZoneXa()
public int getEntryZoneXb()
public int getEntryZoneYa()
public int getEntryZoneYb()
public int getNbEvents()
public void setNbEvents(int nbEvents)
public void incNbEvents()
public int getNbOppositeEvents()
public void setNbOppositeEvents(int nbOppositeEvents)
public void incNbOppositeEvents()
public float getAvgEventRate()
public void setAvgEventRate(float avgEventRate)
public float getAspectRatio()
public void setAspectRatio(float aspectRatio)
|
jAER project on SourceForge | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||