Skip to content

Instantly share code, notes, and snippets.

@Mattriks
Mattriks / spm.jl
Created March 24, 2024 21:32
MEM: Spatial model
module spm
using Distributions, LinearAlgebra
import MeasurementErrorModels as MEM
function Pf(s::T, p::T) where T<:AbstractVector
Dist = (s .-s').^2
return p[2]*exp.(-Dist./p[1])
end
@Mattriks
Mattriks / gg.jl
Created April 16, 2020 11:57
Custom guides in Gadfly
module gg
using Compose, Gadfly
PositionedGuide = Guide.PositionedGuide
top_guide_position = Guide.top_guide_position
right_guide_position = Guide.right_guide_position
struct Marginal <: Gadfly.GuideElement
side::String