The Racket repository
![]() Now, for example, (plot (density '(0))) works. Calculated bandwidth is now bounded by both 1e-308, below which `kde' produces nonsense, and 1e-14 * max absolute value. The latter bound ensures the bandwidth is wide enough to make a smooth-looking curve even in the presence of floating-point rounding in the domain, by ensuring that at least 100 floating-point numbers or so in the domain get nonzero density. It's a little weird to use the gap between floating-point numbers for this, but it ensures density estimates aren't jagged because of rounding (at least until you zoom in, in some instances), and it's at least a decent method of estimating bandwidth for single- sample density estimators. |
||
---|---|---|
native-pkgs@5f391155f2 | ||
pkgs | ||
racket | ||
.gitattributes | ||
.gitignore | ||
.gitmodules | ||
.mailmap | ||
.travis.yml | ||
INSTALL.txt | ||
Makefile | ||
README.txt |
This is the source code for the main Racket distribution. See "INSTALL.txt" for information on building Racket. License ------- Racket Copyright (c) 2010-2014 PLT Design Inc. Racket is distributed under the GNU Lesser General Public License (LGPL). This means that you can link Racket into proprietary applications, provided you follow the rules stated in the LGPL. You can also modify Racket; if you distribute a modified version, you must distribute it under the terms of the LGPL, which in particular means that you must release the source code for the modified software. See racket/src/COPYING_LESSER.txt for more information.