Packages tidyverse
, data.table
, JuliaCall
are run through:
## The following packages have been unloaded:
## JuliaCall, data.table, forcats, stringr, dplyr, purrr, readr, tidyr, tibble, ggplot2, tidyverse
## Loading required package: tidyverse
## ── Attaching packages ────────────────────────────────────── tidyverse 1.3.0 ──
## ✓ ggplot2 3.2.1 ✓ purrr 0.3.3
## ✓ tibble 2.1.3 ✓ dplyr 0.8.3
## ✓ tidyr 1.0.0 ✓ stringr 1.4.0
## ✓ readr 1.3.1 ✓ forcats 0.4.0
## ── Conflicts ───────────────────────────────────────── tidyverse_conflicts() ──
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
## Loading required package: data.table
##
## Attaching package: 'data.table'
## The following objects are masked from 'package:dplyr':
##
## between, first, last
## The following object is masked from 'package:purrr':
##
## transpose
## Loading required package: JuliaCall
## 1.4142135623730951
## 1.4142135623730951
## Plots.GRBackend()
using Distributions
function plothistogram(distribution, n)
ϵ = rand(distribution, n) # n draws from distribution
histogram(ϵ)
end
## plothistogram (generic function with 1 method)
## Laplace{Float64}(μ=0.0, θ=1.0)