public class LocationCluster extends BaseCluster
Modifier and Type | Field and Description |
---|---|
static String |
TAG |
EARTH_RADIUS, mCenter, mDuration, mHistogram, mSemanticId, VECTOR_LENGTH
Constructor and Description |
---|
LocationCluster(Location location,
long duration) |
Modifier and Type | Method and Description |
---|---|
void |
addSample(Location location,
long duration) |
void |
consolidate() |
String |
getSemanticClusterId() |
boolean |
hasSemanticClusterId() |
void |
moveAwayCluster(LocationCluster cluster,
float distance) |
void |
setSemanticClusterId(String semanticClusterId) |
absorbCluster, averageCenter, distanceToCenter, distanceToCluster, forgetPastHistory, generateSemanticId, getCenterLatitude, getCenterLongitude, getDuration, getHistogram, getLocationVector, getLocationVector, getSemanticId, hasSemanticId, normalizeCenter, passThreshold, setCluster, setHistogram
public static String TAG
public LocationCluster(Location location, long duration)
public void setSemanticClusterId(String semanticClusterId)
public String getSemanticClusterId()
public boolean hasSemanticClusterId()
public void addSample(Location location, long duration)
public void consolidate()
public void moveAwayCluster(LocationCluster cluster, float distance)