Skip to content

BeBraveBeCurious/hitandrun

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Hit and Run" sampler

Build Status

This project provides an implementation of the "Hit and Run" algorithm for sampling from convex shapes. Our motivation for doing this is to enable the fast generation of arbitrarily constrained weights in high-dimensional space. This should enable applying e.g. SMAA (http://smaa.fi/) with more complex weight constraints.

R implementation

Releases of the R package are available on CRAN:

http://cran.r-project.org/web/packages/hitandrun/

The source is available from GitHub:

https://github.com/gertvv/hitandrun/

See ??har, ?har, ?har-constraint and ?simplex.sample

Dependencies

hitandrun depends on rcdd, which requires GNU MP. On debian derivatives, the compile-time dependency is provided by libgmp-dev.

Contributors

Thanks to Tommi Tervonen, Douwe Postmus, Ahmet Kandakoglu and Alexander Karlsson for reporting bugs and/or suggesting improvements.

About

"Hit and Run" sampler

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • R 81.4%
  • C 17.7%
  • Other 0.9%