Lines Matching +full:input +full:- +full:code
1 .. zephyr:code-sample:: cmsis-dsp-moving-average
2 :name: CMSIS-DSP moving average
4 Use the CMSIS-DSP library to calculate the moving average of a signal.
9 This sample demonstrates how to use the CMSIS-DSP library to calculate the moving average of a
12 It can be run on any board supported in Zephyr, but note that CMSIS-DSP is specifically optimized
13 for ARM Cortex-A and Cortex-M processors.
19 The sample uses a very simple input signal of 32 samples, and computes the moving average using a
21 CMSIS-DSP function, and displayed on the console.
24 In order to allow an easy comparison of the efficiency of the CMSIS-DSP library when used on ARM
31 CMSIS-DSP is an optional module and needs to be added explicitly to your Zephyr workspace:
33 .. code-block:: shell
35 west config manifest.project-filter -- +cmsis-dsp
36 west update cmsis-dsp
43 .. zephyr-app-commands::
44 :zephyr-app: samples/modules/cmsis_dsp/moving_average
45 :host-os: unix
51 computed average for each 10-sample long window of the input signal.
53 .. code-block:: console
55 *** Booting Zephyr OS build v3.6.0-224-gb55824751d6c ***
57 Input[00]: 0 0 0 0 0 0 0 0 0 0 | Output[00]: 0.00
58 Input[01]: 0 0 0 0 0 0 0 0 0 1 | Output[01]: 0.10
59 Input[02]: 0 0 0 0 0 0 0 0 1 2 | Output[02]: 0.30
60 Input[03]: 0 0 0 0 0 0 0 1 2 3 | Output[03]: 0.60
62 Input[30]: 21 22 23 24 25 26 27 28 29 30 | Output[30]: 25.50
63 Input[31]: 22 23 24 25 26 27 28 29 30 31 | Output[31]: 26.50