Lydia - Printhead
Loading...
Searching...
No Matches
xstatistics.h File Reference
#include <Arduino.h>
#include <math.h>

Go to the source code of this file.

Classes

class  Statistic
 

Macros

#define ABS(a)
 
#define MAX(a, b)
 
#define MIN(a, b)
 
#define STAT_USE_STDEV
 

Macro Definition Documentation

◆ ABS

#define ABS ( a)
Value:
({__typeof__(a) _a = (a); \
_a >= 0 ? _a : -_a; })
Definition xtimer.h:21

Definition at line 40 of file xstatistics.h.

40#define ABS(a) \
41 ({__typeof__(a) _a = (a); \
42 _a >= 0 ? _a : -_a; })

◆ MAX

#define MAX ( a,
b )
Value:
({__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a > _b ? _a : _b; })

Definition at line 35 of file xstatistics.h.

35#define MAX(a, b) \
36 ({__typeof__(a) _a = (a); \
37 __typeof__(b) _b = (b); \
38 _a > _b ? _a : _b; })

◆ MIN

#define MIN ( a,
b )
Value:
({__typeof__(a) _a = (a); \
__typeof__(b) _b = (b); \
_a < _b ? _a : _b; })

Definition at line 30 of file xstatistics.h.

30#define MIN(a, b) \
31 ({__typeof__(a) _a = (a); \
32 __typeof__(b) _b = (b); \
33 _a < _b ? _a : _b; })

◆ STAT_USE_STDEV

#define STAT_USE_STDEV

Definition at line 7 of file xstatistics.h.