mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-06-30 17:41:22 +08:00
Initial commit: NOFX AI Trading System
- Multi-AI competition mode (Qwen vs DeepSeek) - Binance Futures integration - AI self-learning mechanism - Professional web dashboard - Complete risk management system
This commit is contained in:
10
web/node_modules/d3-array/src/groupSort.js
generated
vendored
Normal file
10
web/node_modules/d3-array/src/groupSort.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import ascending from "./ascending.js";
|
||||
import group, {rollup} from "./group.js";
|
||||
import sort from "./sort.js";
|
||||
|
||||
export default function groupSort(values, reduce, key) {
|
||||
return (reduce.length !== 2
|
||||
? sort(rollup(values, reduce, key), (([ak, av], [bk, bv]) => ascending(av, bv) || ascending(ak, bk)))
|
||||
: sort(group(values, key), (([ak, av], [bk, bv]) => reduce(av, bv) || ascending(ak, bk))))
|
||||
.map(([key]) => key);
|
||||
}
|
||||
Reference in New Issue
Block a user