Class ExternalFeatureRecall<U extends java.io.Serializable,​I extends java.io.Serializable,​P>

Type Parameters:
U - type of the user.
I - type of the information.
P - type of the parameters.
All Implemented Interfaces:
IndividualSimulationMetric<U,​I,​P>, SimulationMetric<U,​I,​P>

public class ExternalFeatureRecall<U extends java.io.Serializable,​I extends java.io.Serializable,​P>
extends AbstractExternalFeatureIndividualSimulationMetric<U,​I,​P>
Estimates the fraction of the unknown features of a user have been discovered thanks to the diffusion.
  • Field Details

    • RECALL

      private static final java.lang.String RECALL
      Name fixed value.
      See Also:
      Constant Field Values
    • receivedFeats

      private final java.util.Map<U extends java.io.Serializable,​java.util.Set<P>> receivedFeats
      Stores (if it is necessary), a relation between users and features.
    • total

      private final java.util.Map<U extends java.io.Serializable,​java.lang.Double> total
      The total number of external parameters that have reached the different users
  • Constructor Details

    • ExternalFeatureRecall

      public ExternalFeatureRecall​(java.lang.String feature, boolean userFeat)
      Constructor.
      Parameters:
      userFeat - true if we are using a user feature, false if we are using an information piece feature.
      feature - the name of the feature.
  • Method Details