Class RetentionData
java.lang.Object
com.djrapitops.plan.delivery.domain.mutators.RetentionData
Utility class for player retention calculations.
Previously known as StickyData.
-
Constructor Summary
ConstructorDescriptionRetentionData
(double activityIndex, double onlineOnJoin) RetentionData
(PlayerContainer player, PlayersOnlineResolver onlineOnJoin, long activityMsThreshold) -
Method Summary
Modifier and TypeMethodDescriptionstatic RetentionData
average
(Collection<RetentionData> stuck) static int
countRetentionPrediction
(Collection<ActivityIndex> newPlayers, ActivityIndex retained, ActivityIndex nonRetained) double
distance
(RetentionData data) boolean
double
double
int
hashCode()
-
Constructor Details
-
RetentionData
public RetentionData(double activityIndex, double onlineOnJoin) -
RetentionData
public RetentionData(PlayerContainer player, PlayersOnlineResolver onlineOnJoin, long activityMsThreshold)
-
-
Method Details
-
average
-
countRetentionPrediction
public static int countRetentionPrediction(Collection<ActivityIndex> newPlayers, ActivityIndex retained, ActivityIndex nonRetained) -
distance
-
equals
-
hashCode
public int hashCode() -
getOnlineOnJoin
public double getOnlineOnJoin() -
getActivityIndex
public double getActivityIndex()
-