Interface Distribution<U extends java.io.Serializable,​I extends java.io.Serializable,​F>

Type Parameters:
U - Type of the users.
I - Type of the information pieces.
F - Type of the features.
All Known Implementing Classes:
AbstractDistribution, InfoPiecesDistribution, InformationFeatureDistribution, MixedFeatureDistribution, UserDistribution, UserFeatureDistribution

public interface Distribution<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
Interface for defining a distribution of elements.
  • Method Summary

    Modifier and Type Method Description
    void clear()
    Resets the distribution.
    java.lang.String getName()
    Obtains the name of the distribution.
    void initialize​(Data<U,​I,​F> data)
    Initializes the necessary parameters for the distribution.
    boolean isInitialized()
    Checks if the distribution has been initialized.
    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.
  • Method Details

    • initialize

      void initialize​(Data<U,​I,​F> data)
      Initializes the necessary parameters for the distribution.
      Parameters:
      data - the data.
    • update

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

      void print​(java.lang.String file)
      Prints the distribution into a file.
      Parameters:
      file - The output file.
    • clear

      void clear()
      Resets the distribution.
    • getName

      java.lang.String getName()
      Obtains the name of the distribution.
      Returns:
      the name.
    • isInitialized

      boolean isInitialized()
      Checks if the distribution has been initialized.
      Returns:
      true if the distribution has been initialized, false if it has not.