~ubuntu-branches/ubuntu/lucid/octave-econometrics/lucid

« back to all changes in this revision

Viewing changes to inst/kernel_example.m

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-05-24 10:53:59 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090524105359-g7h66je519gx6t5r
Tags: 1:1.0.8-1
* New upstream release
* debian/control:
  + (Standards-Version): Bump to 3.8.1 (no changes needed)
  + (Depends): Add ${misc:Depends}
  + (Vcs-Git, Vcs-Browser): Adjust to new Git repository
* debian/copyright:
  + Use DEP5 URL in Format-Specification
  + Use separate License stanzas for instructing about the location of
    the different licenses used in the package

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
printf("time for univariate kernel density example using %d data points and %d compute nodes: %f\n", n, nodes, t1);
69
69
printf("A rough integration under the fitted univariate density is %f\n", sum(dens)*stepsize);
70
70
figure();
71
 
plot(grid_x, dens, ";fitted density;", grid_x, chisquare_pdf(grid_x,3), ";true density;");
 
71
plot(grid_x, dens, ";fitted density;", grid_x, chi2pdf(grid_x,3), ";true density;");
72
72
title("Example 2: Kernel density fit: Univariate Chi^2(3) data");
73
73
 
74
74
############################################################