File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 2
2
// FILE: RunningMedian.h
3
3
// AUTHOR: Rob dot Tillaart at gmail dot com
4
4
// PURPOSE: RunningMedian library for Arduino
5
- // VERSION: 0.1.14
5
+ // VERSION: 0.1.15
6
6
// URL: http://arduino.cc/playground/Main/RunningMedian
7
7
// HISTORY: See RunningMedian.cpp
8
8
//
20
20
21
21
#include < inttypes.h>
22
22
23
- #define RUNNING_MEDIAN_VERSION " 0.1.14 "
23
+ #define RUNNING_MEDIAN_VERSION " 0.1.15 "
24
24
25
25
// prepare for dynamic version
26
26
// not tested use at own risk :)
27
27
// #define RUNNING_MEDIAN_USE_MALLOC
28
28
29
29
// conditional compile to minimize lib
30
30
// by removeing a lot of functions.
31
+ #ifndef RUNNING_MEDIAN_ALL
31
32
#define RUNNING_MEDIAN_ALL
33
+ #endif
32
34
33
35
34
36
// should at least be 5 to be practical
35
37
// odd size results in a 'real' middle element.
36
38
// even size takes the lower of the two middle elements
39
+ #ifndef MEDIAN_MIN_SIZE
37
40
#define MEDIAN_MIN_SIZE 1
41
+ #endif
42
+ #ifndef MEDIAN_MAX_SIZE
38
43
#define MEDIAN_MAX_SIZE 19 // adjust if needed
44
+ #endif
39
45
40
46
41
47
class RunningMedian
You can’t perform that action at this time.
0 commit comments