Class ExternalFeatureGlobalRate<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 user / information pieces features.
All Implemented Interfaces:
GlobalSimulationMetric<U,​I,​F>, SimulationMetric<U,​I,​F>

public class ExternalFeatureGlobalRate<U extends java.io.Serializable,​I extends java.io.Serializable,​F>
extends AbstractExternalFeatureGlobalSimulationMetric<U,​I,​F>
Metric that computes the rate of features received by the different users which were unknown by the receiver (we understand as external features those information features which are not present in the information pieces created by the users, or those user features different from the receiver's ones).
  • Field Details

    • EXTPARAMRATE

      private static final java.lang.String EXTPARAMRATE
      Name fixed value.
      See Also:
      Constant Field Values
    • externalParams

      private double externalParams
      The number of external parameters that have reached the different users.
    • totalParams

      private double totalParams
      The total number of external parameters that have reached the different users.
    • unique

      private final boolean unique
      Indicates if a piece of information is considered once (or each time it appears if false).
  • Constructor Details

    • ExternalFeatureGlobalRate

      public ExternalFeatureGlobalRate​(java.lang.String parameter, boolean userparam, boolean unique)
      Constructor.
      Parameters:
      userparam - true if we are using a user parameter, false if we are using an information piece parameter.
      parameter - the name of the parameter.
      unique - true if a piece of information is considered once, false if it is considered each time it appears.
  • Method Details