File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/lib/edge_impulse/src/edge_impulse_zip Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111
1212
1313/* Float comparison tolerance. */
14- #define FLOAT_CMP_EPSILON 0.000001
14+ #define FLOAT_CMP_EPSILON 0.000001f
1515
1616/* Definitions provided by the EI library. */
1717#define EI_CLASSIFIER_RAW_SAMPLES_PER_FRAME 15
@@ -32,8 +32,8 @@ static const char * const ei_classifier_inferencing_categories[] = {
3232#define EI_MOCK_GEN_LABEL_IDX (PRED_IDX ) ((PRED_IDX) % EI_CLASSIFIER_LABEL_COUNT)
3333#define EI_MOCK_GEN_LABEL (PRED_IDX ) \
3434 (ei_classifier_inferencing_categories[EI_MOCK_GEN_LABEL_IDX(PRED_IDX)])
35- #define EI_MOCK_GEN_VALUE (PRED_IDX ) (0.5 + ((PRED_IDX) * 0.001 ))
36- #define EI_MOCK_GEN_VALUE_OTHERS (PRED_IDX ) ((1.0 - EI_MOCK_GEN_VALUE(PRED_IDX)) / \
35+ #define EI_MOCK_GEN_VALUE (PRED_IDX ) (0.5f + ((PRED_IDX) * 0.001f ))
36+ #define EI_MOCK_GEN_VALUE_OTHERS (PRED_IDX ) ((1.0f - EI_MOCK_GEN_VALUE(PRED_IDX)) / \
3737 (EI_CLASSIFIER_LABEL_COUNT - 1))
3838#define EI_MOCK_GEN_ANOMALY (PRED_IDX ) ((float)(PRED_IDX))
3939
You can’t perform that action at this time.
0 commit comments