Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
SimpleFeatures Class Reference

Some very simple features that are more easily kept in a different class. More...

#include <conndetect_features.h>

Static Public Member Functions

static float average (const Channel &i)
 Compute the average of a channel value. More...
 
static float hasNonZero (const Channel &i)
 Find a nonzero in the array. More...
 
static float maximum (const Channel &i)
 Find the maximum value in a strictly positive array. No checks on positiveness are done! More...
 

Detailed Description

Some very simple features that are more easily kept in a different class.

Definition at line 200 of file conndetect_features.h.

Member Function Documentation

◆ average()

static float SimpleFeatures::average ( const Channel i)
inlinestatic

Compute the average of a channel value.

Parameters
iThe channel data
Returns
The average value

Definition at line 209 of file conndetect_features.h.

◆ hasNonZero()

static float SimpleFeatures::hasNonZero ( const Channel i)
inlinestatic

Find a nonzero in the array.

Parameters
iThe channel data
Returns

Definition at line 219 of file conndetect_features.h.

◆ maximum()

static float SimpleFeatures::maximum ( const Channel i)
inlinestatic

Find the maximum value in a strictly positive array. No checks on positiveness are done!

Parameters
iThe channel data
Returns
Maximum value

Definition at line 231 of file conndetect_features.h.


The documentation for this class was generated from the following file: