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