001    package railo.runtime.img.interpolation;
002    
003    public class Blackman implements Interpolation
004    {
005        public double f(double x) {
006            return (0.42 + 0.5 * Math.cos(3.141592653589793 * x)
007                    + 0.08 * Math.cos(6.283185307179586 * x));
008        }
009        
010        public double getSupport() {
011            return 1.0;
012        }
013    }