Skip to content

Commit

Permalink
#173: finalized file location
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitryP6 committed Nov 19, 2024
1 parent 2f4449d commit 5e4840d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: local
hooks:
- id: clang_restage
name: Restage formatted files
entry: clang_restage
language: system
pass_filenames: false
always_run: true
repos:
- repo: local
hooks:
- id: clang_restage
name: Restage formatted files
entry: clang_restage
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
8 changes: 8 additions & 0 deletions middleware/simple_ema.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <stdio.h>

// Exponential Moving Average Lowpass Filter
void ema_filter(float current_value, float *previous_ema, float alpha)
{
*previous_ema =
(alpha * current_value) + ((1 - alpha) * (*previous_ema));
}
13 changes: 0 additions & 13 deletions simple_ema.c

This file was deleted.

0 comments on commit 5e4840d

Please sign in to comment.