Skip to content

Instantly share code, notes, and snippets.

Avatar

Andreas Völker a-voel

View GitHub Profile
View perturbation.py
import numpy as np
import matplotlib.pyplot as plt
plt.style.use('ggplot')
Sbar = 0.15
Ibar = 0.001
beta = 2
gamma = 1/2
exponent= beta*Sbar-gamma
View progressreporter.cpp
#include "progressreporter.h"
#include <iostream>
#include <cmath>
#include <sstream>
#include <iomanip>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
@a-voel
a-voel / avcfg.h
Last active February 22, 2022 13:39
View avcfg.h
#ifndef AVCFG_H_INCLUDED
#define AVCFG_H_INCLUDED
/*****************************************************************************
* Declaration *
*****************************************************************************/
/* Size of internal hashtable for dependency resolution. If you have really big
configuration files you might increase this to improve performance. In this case
it might be time to reevaluate if this library is right for you anyway! */
View granular-transmission.c
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#define NUM_SAMPLES 100000
typedef struct{
float x, y, z;
} vec3;