Commit f757add3 authored by Christophe Favergeon's avatar Christophe Favergeon
Browse files

Added window functions for use with Fourier transforms.

Regular functions for use with tone detection and noise estimation.
Flat-top windows for estimation of tone amplitudes.

Parameters of the windows are given.

Kaiser window missing (Bessel function not available in the library).

No f16 implementation since it is not accurate enough. It is better
to compute a f32 window and convert to f16 after.
parent 8ec25f7a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -47,6 +47,7 @@
   * - \ref groupBayes "Bayes classifier functions"
   * - \ref groupDistance "Distance functions"
   * - \ref groupQuaternionMath "Quaternion functions"
   * - \ref groupWindow "Window functions"
   *
   * The library has generally separate functions for operating on 8-bit integers, 16-bit integers,
   * 32-bit integer and 32-bit floating-point values and 64-bit floating-point values.
@@ -63,6 +64,12 @@
   * Compute Graph. The documentation for this project is available
   * on the <a href="https://github.com/ARM-software/CMSIS-DSP/blob/main/ComputeGraph/README.md">CMSIS-DSP github repository.</a> 
   *
   * A Python wrapper is also available with a Python API as close as possible
   * to the C one. It can be used to start developing and testing an algorithm with NumPy and
   * SciPy before writing the C version. Is is available on <a href="https://pypi.org/project/cmsisdsp/">PyPI.org</a>.
   * It can be installed with : pip install cmsisdsp
   * 
   * 
   * \section using Using the Library
   *
   * The library is released in source form. It is strongly advised to compile the library using -Ofast to
+4 −5
Original line number Diff line number Diff line
@@ -27,17 +27,16 @@
#ifndef _BASIC_MATH_FUNCTIONS_F16_H_
#define _BASIC_MATH_FUNCTIONS_F16_H_

#ifdef   __cplusplus
extern "C"
{
#endif

#include "arm_math_types_f16.h"
#include "arm_math_memory.h"

#include "dsp/none.h"
#include "dsp/utils.h"

#ifdef   __cplusplus
extern "C"
{
#endif

#if defined(ARM_FLOAT16_SUPPORTED)

+5 −0
Original line number Diff line number Diff line
@@ -54,6 +54,11 @@ extern "C"
  #define PI               3.14159265358979f
#endif

#ifndef PI_F64 
  #define PI_F64 3.14159265358979323846
#endif



/**
 * @defgroup groupFastMath Fast Math Functions
+812 −0

File added.

Preview size limit exceeded, changes collapsed.

+1255 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading