Root/solidify/histo.h

1/*
2 * histo.h - Distribution of Z values
3 *
4 * Written 2010 by Werner Almesberger
5 * Copyright 2010 by Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13#ifndef HISTO_H
14#define HISTO_H
15
16#include "array.h"
17
18
19struct histo {
20    int n; /* number of bins */
21    int *b; /* bins */
22};
23
24
25struct histo *make_histo(struct array *a);
26void free_histo(struct histo *h);
27int median(const struct histo *h);
28
29#endif /* !HISTO_H */
30

Archive Download this file

Branches:
master



interactive