Class RealPropagatedGlobalRecall<U extends java.io.Serializable,I extends java.io.Serializable,P>
java.lang.Object
es.uam.eps.ir.relison.diffusion.metrics.AbstractGlobalSimulationMetric<U,I,P>
es.uam.eps.ir.relison.diffusion.metrics.informationpieces.global.RealPropagatedGlobalRecall<U,I,P>
- Type Parameters:
U
- type of the user.I
- type of the information.P
- type of the parameters.
- All Implemented Interfaces:
GlobalSimulationMetric<U,I,P>
,SimulationMetric<U,I,P>
public class RealPropagatedGlobalRecall<U extends java.io.Serializable,I extends java.io.Serializable,P> extends AbstractGlobalSimulationMetric<U,I,P>
Computes the fraction of pieces which were repropagated in the real setting which have been received by the users.
-
Field Summary
Fields Modifier and Type Field Description private double
current
Speed value.private double
maximum
Number of currently propagated.private static java.lang.String
PROP
Name fixed value.Fields inherited from class es.uam.eps.ir.relison.diffusion.metrics.AbstractGlobalSimulationMetric
data, initialized
-
Constructor Summary
Constructors Constructor Description RealPropagatedGlobalRecall()
Constructor. -
Method Summary
Modifier and Type Method Description double
calculate()
Calculates the metric for the current state of the simulation.void
clear()
Resets the metric.protected void
initialize()
Initializes all the variables needed for computing and updating the values of the metric.void
update(Iteration<U,I,P> iteration)
Updates the different values which are necessary for computing a metric, given the information received by users in an iteration of the simulation.Methods inherited from class es.uam.eps.ir.relison.diffusion.metrics.AbstractGlobalSimulationMetric
getName, initialize, isInitialized
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface es.uam.eps.ir.relison.diffusion.metrics.SimulationMetric
calculate, initialize
-
Field Details
-
PROP
private static final java.lang.String PROPName fixed value.- See Also:
- Constant Field Values
-
current
private double currentSpeed value. -
maximum
private double maximumNumber of currently propagated.
-
-
Constructor Details
-
RealPropagatedGlobalRecall
public RealPropagatedGlobalRecall()Constructor.
-
-
Method Details
-
clear
public void clear()Description copied from interface:SimulationMetric
Resets the metric. -
calculate
public double calculate()Description copied from interface:SimulationMetric
Calculates the metric for the current state of the simulation.- Returns:
- the value of the metric for the current state of the simulation
-
update
Description copied from interface:SimulationMetric
Updates the different values which are necessary for computing a metric, given the information received by users in an iteration of the simulation.- Parameters:
iteration
- the new iteration.
-
initialize
protected void initialize()Description copied from class:AbstractGlobalSimulationMetric
Initializes all the variables needed for computing and updating the values of the metric.- Specified by:
initialize
in classAbstractGlobalSimulationMetric<U extends java.io.Serializable,I extends java.io.Serializable,P>
-