Class FeatureRecall<U extends java.io.Serializable,​I extends java.io.Serializable,​F>

java.lang.Object
es.uam.eps.ir.relison.diffusion.metrics.AbstractIndividualSimulationMetric<U,​I,​P>
es.uam.eps.ir.relison.diffusion.metrics.features.AbstractFeatureIndividualSimulationMetric<U,​I,​F>
es.uam.eps.ir.relison.diffusion.metrics.features.indiv.FeatureRecall<U,​I,​F>
Type Parameters:
U - type of the user.
I - type of the information.
F - type of the user / information pieces features.
All Implemented Interfaces:
IndividualSimulationMetric<U,​I,​F>, SimulationMetric<U,​I,​F>

public class FeatureRecall<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends AbstractFeatureIndividualSimulationMetric<U,​I,​F>
Computes the fraction of all the features that each user has received during the diffusion process. The final result averages over the set of users.
  • 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<F>> receivedFeats
      Stores (if it is necessary), a relation between users and the received features.
    • total

      private double total
      The different values of the feature.
  • Constructor Details

    • FeatureRecall

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