private static double smoothOilThickness() { double size = oilThicknessValues.size(); double sigma = 0; List<Double> lpf = LowPassFilter.lowPass(oilThicknessValues, alfa); for (double v : lpf) sigma += v; return sigma / size; }