qa_fastnoise: Widen the Laplacian variance tolerance
The Laplacian variance check used places=2, a tolerance of 0.005, which the correct distribution failed too often.
Raising the item count does not fix it. The items are sampled with replacement from a fixed pool of self.num, so the measured variance converges to the pool’s own variance, whose error does not shrink with the number of items: sd(s^2) = sqrt((mu4 - sigma^4)/self.num) is about 0.0019 for b = 1. Simulating the pool over 120 runs, places=2 fails 12% of the time at the default item count and 2% at 10**7, while delta=0.05 failed 0 of 120 in both, with a worst deviation of 0.011.
Use delta=0.05 and drop the 10**7 item count, which cost ten times the samples for a check that still failed.
Signed-off-by: sai pranav rajasaipranav0@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
GNU Radio
GNU Radio is a free & open-source signal processing runtime and signal processing software development toolkit. Originally developed for use with software-defined radios and for simulating wireless communications, it’s robust capabilities have led to adoption in hobbyist, academic, and commercial environments. GNU Radio has found use in software-defined radio, digital communications, nuclear physics, high- energy particle physics, astrophysics, radio astronomy and more!
Helpful Links
How to Run the QT Version of GNU Radio Companion
GNU Radio 4.0
The next major release of GNU Radio, GNU Radio 4.0, is currently under active development in the official GNU Radio 4 repo.
How to Install GNU Radio
Prebuilt Binaries
The recommended way to install GNU Radio on most platforms is using available binary package distributions.
The following command is for Debian, Ubuntu, and derivatives. Consult your distribution information to obtain the version of GNU Radio which is included.
For other operating systems and versions, see Quick Start
Ubuntu PPA Installation
For Ubuntu, the latest builds (both released and pulled from master branch) are maintained as PPAs (Personal Package Archives) on launchpad.net. Be sure to uninstall any previously installed versions of gnuradio first. See UnInstall GR.
Other Installation Methods
Platform-specific guides and Cross-platform guides are described in Other Installation Methods.
From Source
Complete instructions for building GNU Radio from source code are detailed in Installing From Source.
PyBOMBS
We are no longer recommending PyBOMBS to install modern versions of GNU Radio.
Supporting GNU Radio
If you find GNU Radio useful and would like to support its development, you can make a donation. Your contributions help ensure ongoing improvements and maintenance. Thank you for your support!
Legal Matters
Some files have been changed many times throughout the years. Copyright notices at the top of source files list which years changes have been made. For some files, changes have occurred in many consecutive years. These files may often have the format of a year range (e.g., “2006 - 2011”), which indicates that these files have had copyrightable changes made during each year in the range, inclusive.