8000 GitHub - exo-cortex/sample_distributions: sample from custom probability distributions
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

exo-cortex/sample_distributions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Creating unusual 2D probability distributions

This program is mainly an experiment to try and sample from 2D probability distributions. The sampling process works as follows:

  • Define a probability density function p(x,y).
  • Pick a random candidate point C(x,y) and calculate the probability p(x,y).
  • Pick a random value v between 0 and 1. If v < p(x,y) the candidate is successful and is being written into the file. Otherwise the candidate will be rejected.

Note: this method is typically yielding drastically less sample points than candidate points. It is not very efficient.

Current Distribution shapes:

  • Normal distribution
  • Ring-shaped distribution

Todo:

  • finite Line-distribution - A line connecting 2 points

About

sample from custom probability distributions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0