aboutsummaryrefslogtreecommitdiff
path: root/dat.h
blob: 4dd4250c894248fb566b331121ff8af347fde009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
typedef struct State State;
typedef struct Derivative Derivative;
typedef struct Stats Stats;

struct Stats
{
	double cur;
	double total;
	double min, avg, max;
	uvlong nupdates;

	void (*update)(Stats*, double);
};

struct State
{
	double x, v;
	Stats stats;
};

struct Derivative
{
	double dx, dv;
};