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

java.lang.Object
es.uam.eps.ir.relison.diffusion.selections.AbstractSelectionMechanism<U,​I,​P>
es.uam.eps.ir.relison.diffusion.selections.CountSelectionMechanism<U,​I,​P>
es.uam.eps.ir.relison.diffusion.selections.LimitedCountThresholdSelectionMechanism<U,​I,​P>
Type Parameters:
U - type of the users.
I - type of the information pieces.
P - type of the parameters.
All Implemented Interfaces:
SelectionMechanism<U,​I,​P>

public class LimitedCountThresholdSelectionMechanism<U extends java.io.Serializable,​I extends java.io.Serializable,​P>
extends CountSelectionMechanism<U,​I,​P>
Selection mechanism that only propagates those received pieces which have been received (at least) a fixed number of times. It propagates any information piece that the user has received, from, at least, a given proportion of his neighbors.

Reference: D. Kempe, J. Kleinberg, and E. Tardos. Maximizing the spread of influence through a social network, KDD 2003, pp. 137–146 (2003).

It fixes the (maximum) number of received pieces to propagate.
  • Field Details

    • threshold

      private final int threshold
      Number of users that transmit an information piece before a user chooses to share it.
    • orientation

      private final EdgeOrientation orientation
      Orientation for selecting the neighborhood.
  • Constructor Details

    • LimitedCountThresholdSelectionMechanism

      public LimitedCountThresholdSelectionMechanism​(int numOwn, int numRec, int threshold, EdgeOrientation orientation)
      Constructor.
      Parameters:
      numOwn - number of own pieces to propagate.
      numRec - maximum number of received pieces to propagate.
      threshold - number of users that transmit an information piece before a user chooses to share it.
      orientation - orientation for selecting the number of neighbors to consider.
    • LimitedCountThresholdSelectionMechanism

      public LimitedCountThresholdSelectionMechanism​(int numOwn, int numRec, int threshold, EdgeOrientation orientation, int numRepr)
      Parameters:
      numOwn - number of own pieces to propagate.
      numRec - maximum number of received pieces to propagate.
      threshold - number of users that transmit an information piece before a user chooses to share it.
      orientation - orientation for selecting the number of neighbors to consider.
      numRepr - number of pieces to repropagate.
  • Method Details