Skip to content

Instantly share code, notes, and snippets.

View AidanRocke's full-sized avatar

Aidan Rocke AidanRocke

View GitHub Profile
using Distributions
using Statistics
function monotone_approx(N::Int64,n_trials::Int64,n::Int64)
"""
inputs:
N: the range of U([-N,N])
n_trials: the number of times we generate random vectors
n: the 'dimension' of the random vector
@AidanRocke
AidanRocke / sphere_packing.py
Created November 30, 2019 11:36
Modelling early organogenesis as a sphere packing process
import autograd.numpy as np
from autograd import grad
def U(x):
"""
definition of the symmetric potential function
"""
return (x-50.0)**2