view general/numerical/scalar/expquadf.m @ 16:db7f4afd27c5

Rearranging numerical toolbox.
author samer
date Thu, 17 Jan 2013 13:20:44 +0000
parents general/numerical/gauss_fn.m@e44f49929e56
children
line wrap: on
line source
% gauss_fn - Gaussian kernel function, exp(-t^2/2)
%
% gauss_fn :: [D] ~'any size array', nonneg ~'variance' -> [D->noneg]~'same size result'.
% gauss_fn :: [D] ~'any size array' -> [D->noneg]~'same size result'.
function x=gauss_fn(t,s), if nargin<2, x=exp(quadf(t)); else x=exp(quadf(t,s)); end