Skip to content

Instantly share code, notes, and snippets.

@aburkard
aburkard / chisq.r
Last active April 28, 2018 06:15
Sampling Inverse-Chi-squared distribution in R
v <- 7
scale <- 5
set.seed(5)
plot(density(rinvgamma(100000, shape=v/2, scale=v/2*scale)))
set.seed(5)
plot(density(v*scale/rchisq(100000, df=v)))
require(geoR)
@aburkard
aburkard / copy_containing_str.sh
Created August 3, 2018 01:08
Copy all files containing a string to another folder
find . -name "*hi*" -exec cp -i {} -t ../images_unflat/hi/ \;