Skip to content
Simple implementations of sampling patterns, with objective tests to compare them
Branch: master
Clone or download
Latest commit ee0fff5 Mar 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
datacache rngs reseed after each test for more consistent values across tests. Mar 3, 2019
fonts when making images, work in RGBAF32 premultiplied alpha. Feb 16, 2019
output/_1d
src notes out of main! Mar 3, 2019
.gitignore
LICENSE Initial commit Feb 8, 2019
README.md
README.raw.md better contact info Mar 3, 2019
SampleZoo.jpg Add files via upload Feb 14, 2019
building.md Update building.md Feb 8, 2019
codegen.lua
contributesampletest.md
contributing.md
credits.md Update credits.md Mar 8, 2019
docgen.lua take 3 Mar 1, 2019
premake5.exe
premake5.lua
toc.md DFT test begin Feb 24, 2019

README.md

SampleZoo

Table of Contents

_1d

Samples

Blue Noise - Randomized sequences that have only high frequency content

Irrational Numbers - Multiply an irrational number by the squence index and take that mod 1 to make it be in [0,1)

LDS - Low discrepancy sequences

Regular - Uniformly spaced samples

Uniform Random - Randomized sample positions using a uniform random number distribution.

Tests

DFT - Transforms sampling patterns into frequency space

Discrepancy - Calculate metrics about actual point density compared to expected point density if the points were uniformly spaced.

Integration - Use sample points to integrate 1d functions

Numberline - Makes numberlines

SampleZoo

Simple copy/paste-able implementations of sampling patterns, with objective and subjective tests to compare them, along with understandable explanations.

Created by Alan Wolfe

email: alan.wolfe@gmail.com

twitter: https://twitter.com/Atrix256

Building and running this code: building

Everything in this repository is under the MIT License unless otherwise stated in the source file.

Full list of contributors here: credits

Information on how to contribute to this project: contributing

Why Does This Exist??

My interest in sampling patterns is mainly for use in numerical integration techniques in real time graphics. In that situation, you usually want a sequence that will converge with as few samples as possible, and give a pleasing error pattern when it hasn't fully converged.

This stuff is surprisingly nuanced, and new sampling techniques come out every year as researchers continue to push the envelope.

It can be hard to find implementations for some sampling patterns, especially if they are newly published. Furthermore, each sampling paper seems to use different testing methods to show properties of their sequences, which can make it hard to compare against other sample sequences.

My goal is to get as many implemented and tested as possible, including new ones as they come out, so this stuff is more accessible and usable by the folks who could benefit from it.

It's a lot of work for one person though, so Sample Zoo need your help!

Other Software Used

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.