Package cern.accsoft.steering.aloha.calc
Interface NoiseWeighter
-
- All Known Implementing Classes:
NoiseWeighterImpl
public interface NoiseWeightersimple interface which calculates a value weighted by the noise, according to the given configuration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecalcNoisyValue(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)booleanisActiveNoise()
-
-
-
Method Detail
-
calcNoisyValue
double calcNoisyValue(double value, double noise)calculates the value weighted by the given noise.- Parameters:
value- the value for which to calculate the noisenoise- the noise for the value- Returns:
- the value weighted by the noise.
-
isActiveNoise
boolean isActiveNoise()
-
calcNoisyValues
java.util.List<java.lang.Double> calcNoisyValues(java.util.List<java.lang.Double> values, java.util.List<java.lang.Double> noiseValues)
-
-