# Local filtering of nonuniform points

**URL:** https://discourse.julialang.org/t/local-filtering-of-nonuniform-points/24407
**Category:** General Usage
**Created:** [May 20, 2019, 4:45pm UTC](https://discourse.julialang.org/t/local-filtering-of-nonuniform-points/24407 "2019-05-20T16:45:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [May 20, 2019, 4:45pm UTC](https://discourse.julialang.org/t/local-filtering-of-nonuniform-points/24407/1 "2019-05-20T16:45:23Z")

</div>

Hi! There are packages like `LocalFilters` and `ImageFiltering` that can apply a function, e.g. `mean`, to a rolling window across an array. However, I could not find any package which supports a rolling window defined not by array indices, but by a separate array of (irregularly separated) values. Am I missing something already existing?

---

<div class="post-metadata">

### Author: ![baggepinnen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/baggepinnen/32/693_2.png) [@baggepinnen](https://discourse.julialang.org/u/baggepinnen)
#### Post date: [May 20, 2019, 5:06pm UTC](https://discourse.julialang.org/t/local-filtering-of-nonuniform-points/24407/2 "2019-05-20T17:06:58Z")

</div>

Tried your luck with [https://github.com/JeffreySarnoff/RollingFunctions.jl](https://github.com/JeffreySarnoff/RollingFunctions.jl)?

---

<div class="post-metadata">

### Author: ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)
#### Post date: [May 20, 2019, 5:09pm UTC](https://discourse.julialang.org/t/local-filtering-of-nonuniform-points/24407/3 "2019-05-20T17:09:28Z")

</div>

It seems to support index-based windows with the same number of elements only, same as packages I mentioned.
