/// <inheritdoc/>
        public double Compute(BasicStat continuousActivationStat,
                              BasicStat continuousActivationDiffStat,
                              MovingDataWindow activationMDW,
                              SimpleQueue <byte> firingMDW,
                              double activation,
                              double normalizedActivation,
                              bool spike
                              )
        {
            PredictorActivationDiffRescaledRangeSettings cfg = (PredictorActivationDiffRescaledRangeSettings)Cfg;

            if (activationMDW.UsedCapacity >= cfg.Window)
            {
                return(activationMDW.GetDataDiffRescaledRange(cfg.Window));
            }
            else
            {
                return(0d);
            }
        }
 //Constructor
 /// <summary>
 /// Creates an initialized instance.
 /// </summary>
 /// <param name="cfg">The configuration of the predictor.</param>
 public PredictorActivationDiffRescaledRange(PredictorActivationDiffRescaledRangeSettings cfg)
 {
     Cfg = cfg;
     return;
 }
 /// <summary>
 /// The copy constructor.
 /// </summary>
 /// <param name="source">The source instance.</param>
 public PredictorActivationDiffRescaledRangeSettings(PredictorActivationDiffRescaledRangeSettings source)
     : this(source.Window)
 {
     return;
 }