public class RetentionData
extends java.lang.Object
Previously known as StickyData.
Constructor and Description |
---|
RetentionData(double activityIndex,
double onlineOnJoin) |
RetentionData(PlayerContainer player,
PlayersOnlineResolver onlineOnJoin,
long activityMsThreshold) |
Modifier and Type | Method and Description |
---|---|
static RetentionData |
average(java.util.Collection<RetentionData> stuck) |
static int |
countRetentionPrediction(java.util.Collection<ActivityIndex> newPlayers,
ActivityIndex retained,
ActivityIndex nonRetained) |
double |
distance(RetentionData data) |
boolean |
equals(java.lang.Object o) |
double |
getActivityIndex() |
double |
getOnlineOnJoin() |
int |
hashCode() |
public RetentionData(double activityIndex, double onlineOnJoin)
public RetentionData(PlayerContainer player, PlayersOnlineResolver onlineOnJoin, long activityMsThreshold)
public static RetentionData average(java.util.Collection<RetentionData> stuck)
public static int countRetentionPrediction(java.util.Collection<ActivityIndex> newPlayers, ActivityIndex retained, ActivityIndex nonRetained)
public double distance(RetentionData data)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public double getOnlineOnJoin()
public double getActivityIndex()