Class NoiseWeighterImpl

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double calcNoisyValue​(double value, double noise)
      calculates the value weighted by the given noise.
      java.util.List<java.lang.Double> calcNoisyValues​(java.util.List<java.lang.Double> values, java.util.List<java.lang.Double> noiseValues)  
      double getNoiseLimit()  
      boolean isActiveNoise()  
      void setActiveNoise​(boolean activeNoise)  
      void setNoiseLimit​(double noiseLimit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NoiseWeighterImpl

        public NoiseWeighterImpl()
    • Method Detail

      • calcNoisyValue

        public final double calcNoisyValue​(double value,
                                           double noise)
        Description copied from interface: NoiseWeighter
        calculates the value weighted by the given noise.
        Specified by:
        calcNoisyValue in interface NoiseWeighter
        Parameters:
        value - the value for which to calculate the noise
        noise - the noise for the value
        Returns:
        the value weighted by the noise.
      • setActiveNoise

        public void setActiveNoise​(boolean activeNoise)
        Specified by:
        setActiveNoise in interface NoiseWeighterConfig
        Parameters:
        activeNoise - the activeNoise to set
      • setNoiseLimit

        public void setNoiseLimit​(double noiseLimit)
        Specified by:
        setNoiseLimit in interface NoiseWeighterConfig
        Parameters:
        noiseLimit - the noiseLimit to set
      • calcNoisyValues

        public java.util.List<java.lang.Double> calcNoisyValues​(java.util.List<java.lang.Double> values,
                                                                java.util.List<java.lang.Double> noiseValues)
        Specified by:
        calcNoisyValues in interface NoiseWeighter