Ben NanoNote 3D scans
Sign in or create your account | Project List | Help
Ben NanoNote 3D scans Git Source Tree
Root/
Source at commit 9c614db35a13a7ed7f0d745290d7d37ecf604717 created 13 years 6 months ago. By Werner Almesberger, Bottom face was flipped in overlap. | |
---|---|
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 | |
19 | struct histo { |
20 | int n; /* number of bins */ |
21 | int *b; /* bins */ |
22 | }; |
23 | |
24 | |
25 | struct histo *make_histo(struct array *a); |
26 | void free_histo(struct histo *h); |
27 | int median(const struct histo *h); |
28 | |
29 | #endif /* HISTO_H */ |
30 |
Branches:
master