This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static java.lang.Math.*; | |
public class GaussSmooth { | |
private static double gauss(double sigma, double x) { | |
double expVal = -0.5 * (pow(x, 2) / pow(sigma, 2)); | |
return exp(expVal); | |
} | |
private static double[] gaussKernel1d(double sigma, int lw) { |