lastEventTimestamp
is the last time the cluster was
* touched either by an event or by some other timestamped update, e.g.
- * null null null null null null null null null null null null null {@link #updateClusterList(net.sf.jaer.event.EventPacket, int)
+ * null null null null null null null null null null null null null null
+ * null null null null {@link #updateClusterList(net.sf.jaer.event.EventPacket, int)
* }.
*
* @see #isVisible()
@@ -1239,11 +1248,11 @@ public class Cluster implements ClusterInterface { // TODO badly needs a cheap c
*/
private int clusterNumber;
/**
- * Average event rate as computed using mixingFactor.
+ * Average event rate as computed using eventRatePerPixelLowpassTauS.
*
- * @see #mixingFactor
+ * @see #eventRatePerPixelLowpassTauS
*/
- private float avgEventRate = 0;
+ private float avgEventRateHz = 0;
private float radius; // in chip chip pixels
protected float aspectRatio, radiusX, radiusY;
protected LinkedListcheckAndSetClusterVisibilityFlag
. This flag flags
- * whether cluster has gotten enough support.
+ * updateVisibility
. This flag flags whether cluster has
+ * gotten enough support.
*
* @return true if cluster has obtained enough support.
- * @see #checkAndSetClusterVisibilityFlag
+ * @see #updateVisibility
*/
@Override
final public boolean isVisible() {
@@ -2425,7 +2458,7 @@ public float getMeasuredRadius() {
}
public float getMeasuredAverageEventRate() {
- return avgEventRate / radius;
+ return avgEventRateHz / radius;
}
/**
@@ -2499,13 +2532,13 @@ protected void onPruning() {
}
/**
- * onBecomingVisible is called when the cluster has first become visible.
- * By default no special action is taken. Subclasses
- * can override this method to take a special action on pruning.
+ * onBecomingVisible is called when the cluster has first become
+ * visible. By default no special action is taken. Subclasses can
+ * override this method to take a special action on pruning.
*/
protected void onBecomingVisible() {
}
-
+
/**
* Determines if this cluster overlaps the center of another cluster.
*
@@ -2762,17 +2795,18 @@ public void setAvgISI(float avgISI) {
// + * Note that this measure emphasizes the high spike rates because a few + * events in rapid succession can rapidly push up the average rate. */ - public float getAvgEventRate() { - return avgEventRate; + public float getAvgEventRateHz() { + return avgEventRateHz; } - public void setAvgEventRate(float avgEventRate) { - this.avgEventRate = avgEventRate; + public void setAvgEventRateHz(float avgEventRateHz) { + this.avgEventRateHz = avgEventRateHz; } //