mirror of
git://projects.qi-hardware.com/ben-scans.git
synced 2024-11-22 12:01:54 +02:00
18 lines
257 B
C
18 lines
257 B
C
|
#ifndef HISTO_H
|
||
|
#define HISTO_H
|
||
|
|
||
|
#include "array.h"
|
||
|
|
||
|
|
||
|
struct histo {
|
||
|
int n; /* number of bins */
|
||
|
int *b; /* bins */
|
||
|
};
|
||
|
|
||
|
|
||
|
struct histo *make_histo(struct array *a);
|
||
|
void free_histo(struct histo *h);
|
||
|
int median(const struct histo *h);
|
||
|
|
||
|
#endif /* HISTO_H */
|