Package cern.accsoft.steering.util
Class StatUtil
- java.lang.Object
 - 
- cern.accsoft.steering.util.StatUtil
 
 
- 
public class StatUtil extends java.lang.Objectsimple statistical util-methods 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublecalcMean(double[] values)calculates the average of the given valuesstatic doublecalcRms(double[] values)calculates the rms of the given array of valuesstatic doublecalcStandardDeviation(double[] values, double meanValue)calculates an estimate for the standard deviation with respect to the given mean.static java.lang.StringcreateMeanRmsString(double[] values)creates a predefined string, that contains useful statistical information. 
 - 
 
- 
- 
Method Detail
- 
createMeanRmsString
public static final java.lang.String createMeanRmsString(double[] values)
creates a predefined string, that contains useful statistical information.- Parameters:
 values- the values for which to calc the stats- Returns:
 - the string
 
 
- 
calcMean
public static final double calcMean(double[] values)
calculates the average of the given values- Parameters:
 values- the values to calc the average from- Returns:
 - the average
 
 
- 
calcRms
public static final double calcRms(double[] values)
calculates the rms of the given array of values- Parameters:
 values- the values to calc the rms from- Returns:
 - the rms
 
 
- 
calcStandardDeviation
public static final double calcStandardDeviation(double[] values, double meanValue)calculates an estimate for the standard deviation with respect to the given mean.- Parameters:
 values- the values for which to calc the diff-rmsmeanValue- the value to calc the diff to for each value.- Returns:
 - the diff-rms
 
 
 - 
 
 -