This is a static copy of a profile report

Home

Optimizer_cpu>Optimizer_cpu.pdfs_from_samples (Calls: 909, Time: 2.440 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
44
qmd = sum(mu_deviation .* (o.S...
54451.535 s62.9%
49
pdfs(i,:) = exp(lC+(qmd/-2)-ld...
54450.438 s17.9%
43
mu_deviation = samples - repma...
54450.206 s8.5%
51
pdfs = pdfs .* isfinite(pdfs);
9090.121 s4.9%
46
ldS = 0.5*log(abs(det(o.Sigma(...
54450.078 s3.2%
All other lines  0.062 s2.5%
Totals  2.440 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
Coverage results
Show coverage for parent directory
Total lines in function13
Non-code lines (comments, blank lines)3
Code lines (lines that can run)10
Code lines that did run10
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
  40 
        function [pdfs] = pdfs_from_samples(o, samples)
  0.03 
    909 
  41 
            pdfs = zeros(o.nclass, o.nsample, 'single'); 
< 0.01 
    909 
  42 
            for i = 1:o.nclass 
  0.21 
   5445 
  43 
                mu_deviation = samples - repmat(o.mu(:,i), 1, o.nsample); 
  1.54 
   5445 
  44 
                qmd = sum(mu_deviation .* (o.Sigma(:,:,i)\mu_deviation), 1); 
  45 

  0.08 
   5445 
  46 
                ldS = 0.5*log(abs(det(o.Sigma(:,:,i)))); 
  0.02 
   5445 
  47 
                lC = log(o.P(i)) - (o.nfeature/2)*log(2*pi); 
  48 

  0.44 
   5445 
  49 
                pdfs(i,:) = exp(lC+(qmd/-2)-ldS); 
< 0.01 
   5445 
  50 
            end 
  0.12 
    909 
  51 
            pdfs = pdfs .* isfinite(pdfs); 
< 0.01 
    909 
  52 
        end 

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