Skip to content

Instantly share code, notes, and snippets.

View CarloLucibello's full-sized avatar

Carlo Lucibello CarloLucibello

View GitHub Profile
using LinearAlgebra, Random, Statistics
using SpecialFunctions: erf, erfinv
using Primes: Primes
using BenchmarkTools
using MvNormalCDF: MvNormalCDF
using Test
# implements https://www.math.wsu.edu/faculty/genz/papers/mvn.pdf
# with the addition of quasi-monte carlo point sampling
# as discussed in the Genz's book and implemented in MvNormalCDF.jl
@CarloLucibello
CarloLucibello / arrow_image_dataset.jl
Created February 11, 2023 22:24
arrow_image_dataset
using TestImages, Images, Arrow, ImageInTerminal
# img = testimage("cameraman")
# img = testimage("airplaneF16")
img = testimage("autumn_leaves")
_arrowname(::Type{Gray}) = Symbol("JuliaLang.Gray")
_arrowname(::Type{RGB}) = Symbol("JuliaLang.RGB")
_arrowname(::Type{RGBA}) = Symbol("JuliaLang.RGBA")