This is a static copy of a profile report

Home

makeresampler>StandardKernel (1721 calls, 0.911 sec)
Generated 05-Nov-2014 07:53:12 using cpu time.
subfunction in file /usr1/opt/matlab/7.13/toolbox/images/images/makeresampler.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
makeresampler>MakeSeparablesubfunction1721
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
333
interpolant = GetCanonicalStri...
17210.581 s63.7%
341
positiveHalf = SampleKernel(@L...
17210.210 s23.1%
339
case 'linear' 
17210.050 s5.5%
340
halfwidth = 1.0;
17210.010 s1.1%
336
case 'nearest'
17210.010 s1.1%
All other lines  0.050 s5.5%
Totals  0.911 s100% 
Children (called functions)

Function NameFunction TypeCallsTotal Time% TimeTime Plot
makeresampler>GetCanonicalStringsubfunction17210.551 s60.4%
makeresampler>SampleKernelsubfunction17210.210 s23.1%
Self time (built-ins, overhead, etc.)  0.150 s16.5%
Totals  0.911 s100% 
Code Analyzer results
Line numberMessage
Coverage results
[ Show coverage for parent directory ]
Total lines in function21
Non-code lines (comments, blank lines)6
Code lines (lines that can run)15
Code lines that did run7
Code lines that did not run8
Coverage (did run/can run)46.67 %
Function listing
   time   calls  line
331 function K = StandardKernel( interpolant, frequency )
332
0.58 1721 333 interpolant = GetCanonicalString( interpolant, 'Interpolant', ...
334 {'nearest','linear','cubic'});
1721 335 switch interpolant
0.01 1721 336 case 'nearest'
337 K = [];
338
0.05 1721 339 case 'linear'
0.01 1721 340 halfwidth = 1.0;
0.21 1721 341 positiveHalf = SampleKernel(@LinearKernel, halfwidth, frequency);
1721 342 K = {halfwidth, positiveHalf};
343
344 case 'cubic'
345 halfwidth = 2.0;
346 positiveHalf = SampleKernel(@CubicKernel, halfwidth, frequency);
347 K = {halfwidth, positiveHalf};
348
349 otherwise
350 error(message('images:makeresampler:invalidInterpolant'))
351 end

Other subfunctions in this file are not included in this listing.