88kami88 / 88kami88/quantile

Alpha/Reverse Quantile

Offen
#12 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement good first issue
Vorherrschende Sprache
JavaScript
Sterne
0
Forks
0
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

The functions is `quantile.js` are generic enough that they could support different numerical sorts (reverse) and alpha lists.

```js
const alphaSort = items => items.sort();
const alphaAverage = (a, b) => a + b;
const alpha = quantile(alphaSort, alphaAverage);
```

```js
const reverseSort = items => items.sort((a, b) => b - a)); // reversed!
const reverse = quantile(reverseSort, average);
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The issue is about extending quantile.js to support reverse sorting and custom alpha lists. Start by examining the quantile.js file to understand the current quantile function signature and implementation. Look for where sorting and averaging logic is used. The goal is to modify the function to accept a custom sort function and an averaging function as parameters, as shown in the examples. Test the changes by creating examples like the alpha and reverse quantile cases to ensure they work correctly.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
tooling
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.