88kami88 / 88kami88/quantile

Alpha/Reverse Quantile

オープン
#12 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good first issue
主要言語
JavaScript
スター
0
フォーク
0
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
tooling
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。