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:
tinkle-community
2025-10-28 15:47:34 +08:00
parent 976d6d74f6
commit 5aa50d35d7
12369 changed files with 1739210 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import count from "../count.js";
import quantile from "../quantile.js";
export default function thresholdFreedmanDiaconis(values, min, max) {
const c = count(values), d = quantile(values, 0.75) - quantile(values, 0.25);
return c && d ? Math.ceil((max - min) / (2 * d * Math.pow(c, -1 / 3))) : 1;
}

7
web/node_modules/d3-array/src/threshold/scott.js generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import count from "../count.js";
import deviation from "../deviation.js";
export default function thresholdScott(values, min, max) {
const c = count(values), d = deviation(values);
return c && d ? Math.ceil((max - min) * Math.cbrt(c) / (3.49 * d)) : 1;
}

5
web/node_modules/d3-array/src/threshold/sturges.js generated vendored Normal file
View File

@@ -0,0 +1,5 @@
import count from "../count.js";
export default function thresholdSturges(values) {
return Math.max(1, Math.ceil(Math.log(count(values)) / Math.LN2) + 1);
}