@iyulab/u-insight 0.10.1 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/package.json +1 -1
- package/u_insight.d.ts +7 -3
- package/u_insight_bg.js +7 -3
- package/u_insight_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -361,7 +361,10 @@ Local Outlier Factor anomaly detection. `config`: `{ "k": 20, "threshold": 1.5 }
|
|
|
361
361
|
|
|
362
362
|
#### `distribution_analysis(data, config) -> DistributionResult`
|
|
363
363
|
|
|
364
|
-
Distribution analysis on a 1-D array. `config`: `{ "bin_method": "freedman_diaconis", "significance_level": 0.05, "compute_ecdf": true, "compute_histogram": true, "compute_qq_plot": true, "fit_distributions": false }`.
|
|
364
|
+
Distribution analysis on a 1-D array. `config`: `{ "bin_method": "freedman_diaconis", "bins": null, "significance_level": 0.05, "compute_ecdf": true, "compute_histogram": true, "compute_qq_plot": true, "fit_distributions": false }`.
|
|
365
|
+
|
|
366
|
+
- `bin_method`: `"sturges" | "scott" | "freedman_diaconis"` — automatic bin count rule (default `"freedman_diaconis"`).
|
|
367
|
+
- `bins` (optional, integer >= 1): explicit histogram bin count. When set it takes precedence over `bin_method`, and the histogram `method` field echoes `"Fixed(n)"`.
|
|
365
368
|
|
|
366
369
|
**Output:**
|
|
367
370
|
```json
|
package/package.json
CHANGED
package/u_insight.d.ts
CHANGED
|
@@ -94,9 +94,13 @@ export function detect_univariate_outliers(data: any): any;
|
|
|
94
94
|
*
|
|
95
95
|
* `data`: flat array `[1.0, 2.0, 3.0, ...]`
|
|
96
96
|
*
|
|
97
|
-
* `config`: `{ "bin_method": "freedman_diaconis", "
|
|
98
|
-
* "
|
|
99
|
-
* "fit_distributions": false }`
|
|
97
|
+
* `config`: `{ "bin_method": "freedman_diaconis", "bins": null,
|
|
98
|
+
* "significance_level": 0.05, "compute_ecdf": true, "compute_histogram": true,
|
|
99
|
+
* "compute_qq_plot": true, "fit_distributions": false }`
|
|
100
|
+
*
|
|
101
|
+
* `bins` (optional, >= 1): explicit histogram bin count; when set it takes
|
|
102
|
+
* precedence over `bin_method`. The histogram `method` field echoes
|
|
103
|
+
* `"Fixed(n)"` in that case.
|
|
100
104
|
*
|
|
101
105
|
* # Output
|
|
102
106
|
*
|
package/u_insight_bg.js
CHANGED
|
@@ -132,9 +132,13 @@ export function detect_univariate_outliers(data) {
|
|
|
132
132
|
*
|
|
133
133
|
* `data`: flat array `[1.0, 2.0, 3.0, ...]`
|
|
134
134
|
*
|
|
135
|
-
* `config`: `{ "bin_method": "freedman_diaconis", "
|
|
136
|
-
* "
|
|
137
|
-
* "fit_distributions": false }`
|
|
135
|
+
* `config`: `{ "bin_method": "freedman_diaconis", "bins": null,
|
|
136
|
+
* "significance_level": 0.05, "compute_ecdf": true, "compute_histogram": true,
|
|
137
|
+
* "compute_qq_plot": true, "fit_distributions": false }`
|
|
138
|
+
*
|
|
139
|
+
* `bins` (optional, >= 1): explicit histogram bin count; when set it takes
|
|
140
|
+
* precedence over `bin_method`. The histogram `method` field echoes
|
|
141
|
+
* `"Fixed(n)"` in that case.
|
|
138
142
|
*
|
|
139
143
|
* # Output
|
|
140
144
|
*
|
package/u_insight_bg.wasm
CHANGED
|
Binary file
|