88kami88 / 88kami88/quantile

Alpha/Reverse Quantile

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement good first issue
Lingua principale
JavaScript
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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);
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
javascript
Ambito
tooling
Tipo di issue
Funzionalità
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.