This is a static copy of a profile report

Home

Optimizer_cpu>Optimizer_cpu.weights_from_pdfs (Calls: 909, Time: 0.361 sec)
Generated 28-May-2016 14:58:46 using performance time.
class method in file /home/johs/work/clustering/src/Optimizer_cpu.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
...ll_classes_within_confidence_intervalclass method9
Optimizer_cpu>Optimizer_cpu.MoGEMclass method900
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
57
weights = pdfs ./ repmat(sampl...
9090.195 s54.1%
58
weights(find(not(isfinite(weig...
9090.069 s19.1%
55
samplewise_total = sum(pdfs,1)...
9090.060 s16.6%
56
samplewise_total(find(not(isfi...
9090.029 s8.1%
59
end
9090.002 s0.6%
All other lines  0.005 s1.4%
Totals  0.361 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
56If 'samplewise_total' is an indexed variable, performance can be improved using logical indexing instead of FIND.
58If 'weights' is an indexed variable, performance can be improved using logical indexing instead of FIND.
Coverage results
Show coverage for parent directory
Total lines in function6
Non-code lines (comments, blank lines)1
Code lines (lines that can run)5
Code lines that did run5
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  54 
        function [weights] = weights_from_pdfs(o, pdfs)
  0.06 
    909 
  55 
            samplewise_total = sum(pdfs,1); 
  0.03 
    909 
  56 
            samplewise_total(find(not(isfinite(samplewise_total(:))))) = inf; 
  0.20 
    909 
  57 
            weights = pdfs ./ repmat(samplewise_total, o.nclass, 1); 
  0.07 
    909 
  58 
            weights(find(not(isfinite(weights(:))))) = 0; 
< 0.01 
    909 
  59 
        end 

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