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

java.lang.Object
es.uam.eps.ir.relison.diffusion.metrics.distributions.AbstractDistribution<U,​I,​F>
es.uam.eps.ir.relison.diffusion.metrics.distributions.InfoPiecesDistribution<U,​I,​F>
Type Parameters:
U - type of the users.
I - type of the information pieces.
F - type of the the user / information pieces features.
All Implemented Interfaces:
Distribution<U,​I,​F>

public class InfoPiecesDistribution<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends AbstractDistribution<U,​I,​F>
Distribution for information pieces.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private static java.lang.String INFOPIECES
    Name of the distribution
    private Relation<java.lang.Integer> relation
    Relation between users and tags.

    Fields inherited from class es.uam.eps.ir.relison.diffusion.metrics.distributions.AbstractDistribution

    data, initialized
  • Constructor Summary

    Constructors 
    Constructor Description
    InfoPiecesDistribution()
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    void clear()
    Resets the distribution.
    protected void initialize()
    Initializes the necessary variables.
    void print​(java.lang.String file)
    Prints the distribution into a file.
    void update​(Iteration<U,​I,​F> iteration)
    Updates the different values of the distribution.

    Methods inherited from class es.uam.eps.ir.relison.diffusion.metrics.distributions.AbstractDistribution

    getName, initialize, isInitialized

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • initialize

      protected void initialize()
      Description copied from class: AbstractDistribution
      Initializes the necessary variables.
      Specified by:
      initialize in class AbstractDistribution<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
    • update

      public void update​(Iteration<U,​I,​F> iteration)
      Description copied from interface: Distribution
      Updates the different values of the distribution.
      Parameters:
      iteration - The current iteration.
    • print

      public void print​(java.lang.String file)
      Description copied from interface: Distribution
      Prints the distribution into a file.
      Parameters:
      file - The output file.
    • clear

      public void clear()
      Description copied from interface: Distribution
      Resets the distribution.