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 voidclear()Resets the distribution.java.lang.StringgetName()Obtains the name of the distribution.voidinitialize(Data<U,I,F> data)Initializes the necessary parameters for the distribution.booleanisInitialized()Checks if the distribution has been initialized.voidprint(java.lang.String file)Prints the distribution into a file.voidupdate(Iteration<U,I,F> iteration)Updates the different values of the distribution.
-
Method Details
-
initialize
Initializes the necessary parameters for the distribution.- Parameters:
data- the data.
-
update
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.
-