finish error analysis for gaussian kernel