
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
1eurofilter
Advanced tools
Provides a typescript implementation for the 1€ filter.
npm install 1eurofilter
import {OneEuroFilter} from '1eurofilter'
let frequency = 120; // Hz
let mincutoff = 1.0; // Hz
let beta = 0.1;
let dcutoff = 1.0;
let f = new OneEuroFilter(frequency, mincutoff, beta, dcutoff);
let noisyvalue = 2.1;
let timestamp = 0.0; // in seconds
let filtered = f.filter(noisyvalue, timestamp);
• new OneEuroFilter(freq, mincutoff, beta, dcutoff)
Constructs a 1 euro filter.
| Name | Type | Default value | Description |
|---|---|---|---|
freq | number | undefined | An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available. |
mincutoff | number | 1.0 | Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter. |
beta | number | 0.0 | Parameter to reduce latency (> 0). |
dcutoff | number | 1.0 | Used to filter the derivates. 1 Hz by default. Change this parameter if you know what you are doing. |
▸ filter(value, timestamp): number
Returns the filtered value.
| Name | Type | Description |
|---|---|---|
value | number | Noisy value to filter |
timestamp | number | (optional) timestamp in seconds |
▸ reset(): void
Resets the internal state of the filter.
▸ setBeta(beta): void
Sets the Beta parameter
| Name | Type | Description |
|---|---|---|
beta | number | Parameter to reduce latency (> 0). |
▸ setDerivateCutoff(dcutoff): void
Sets the dcutoff parameter
| Name | Type | Description |
|---|---|---|
dcutoff | number | Used to filter the derivates. 1 Hz by default. Change this parameter if you know what you are doing. |
▸ setFrequency(freq): void
Sets the frequency of the signal
| Name | Type | Description |
|---|---|---|
freq | number | An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available. |
▸ setMinCutoff(mincutoff): void
Sets the filter min cutoff frequency
| Name | Type | Description |
|---|---|---|
mincutoff | number | Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter. |
▸ setParameters(freq, mincutoff, beta): void
Sets the parameters of the 1 euro filter.
| Name | Type | Description |
|---|---|---|
freq | number | An estimate of the frequency in Hz of the signal (> 0), if timestamps are not available. |
mincutoff | number | Min cutoff frequency in Hz (> 0). Lower values allow to remove more jitter. |
beta | number | Parameter to reduce latency (> 0). |
@inproceedings{10.1145/2207676.2208639,
author = {Casiez, G\'{e}ry and Roussel, Nicolas and Vogel, Daniel},
title = {1 € Filter: A Simple Speed-Based Low-Pass Filter for Noisy Input in Interactive Systems},
year = {2012},
isbn = {9781450310154},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
url = {https://doi.org/10.1145/2207676.2208639},
doi = {10.1145/2207676.2208639},
pages = {2527–2530},
numpages = {4},
keywords = {noise, jitter, lag, precision, filtering, responsiveness, signal},
location = {Austin, Texas, USA},
series = {CHI '12}
}
FAQs
Algorithm to filter noisy signals for high precision and responsiveness.
We found that 1eurofilter demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.