// Copyright (C) 1999-2016 // Smithsonian Astrophysical Observatory, Cambridge, MA, USA // For conditions of distribution and use, see copyright notice in "copyright" #include #include #include using namespace std; #include #include "smooth.h" void boxcar(double* kernel, int r) { int rr = 2*r+1; int ksz = rr*rr; double* ptr = kernel; for (int jj=0; jj