fslaborg / fslaborg/FSharp.Stats

Move regularize anywhere more appropriate

Open
#285 1 comment 0 reactions 0 assignees View on GitHub
refactor
Dominant language
F#
Stars
227
Forks
58
Avg merge
55m
Merged PRs (30d)
1

Description

The `regularizeValues` function is located in `Interpolation.Approximation`. While it is currently only used here, it is of bread interest to have this function available on a more global layer. It could be moved to the `Seq/List/Array/Vector` modules, or to its own source file in the `Signal` namespace.

#### Function
Zipping, sorting, aggregating at ties

```fsharp
let xData = [2;2;1;3]
let yData = [8;9;1;4]

regularizeValues xData yData Seq.mean
val it: seq = seq [(1.0, 1.0); (2.0, 8.5); (3.0, 4.0)]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.