Class UserDistribution<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.UserDistribution<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 UserDistribution<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 distributionprivate 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 UserDistribution()
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
-
Field Details
-
INFOPIECES
private static final java.lang.String INFOPIECESName of the distribution- See Also:
- Constant Field Values
-
relation
Relation between users and tags.
-
-
Constructor Details
-
UserDistribution
public UserDistribution()Constructor.
-
-
Method Details
-
initialize
protected void initialize()Description copied from class:AbstractDistribution
Initializes the necessary variables.- Specified by:
initialize
in classAbstractDistribution<U extends java.io.Serializable,I extends java.io.Serializable,F>
-
update
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.
-