@nirs4all/methods 1.3.15 → 1.3.16
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.
|
@@ -3348,6 +3348,16 @@ export declare class Normalize extends NativeEstimator implements Transformer {
|
|
|
3348
3348
|
constructor(params?: NormalizeParams);
|
|
3349
3349
|
transform(X: Matrix): Matrix;
|
|
3350
3350
|
}
|
|
3351
|
+
/** Parameters of RowL2Normalize; unset values take the native defaults. */
|
|
3352
|
+
export interface RowL2NormalizeParams {
|
|
3353
|
+
}
|
|
3354
|
+
/** Native `preprocessing.scaling.row_l2_normalize` (transformer). */
|
|
3355
|
+
export declare class RowL2Normalize extends NativeEstimator implements Transformer {
|
|
3356
|
+
readonly methodId = "preprocessing.scaling.row_l2_normalize";
|
|
3357
|
+
readonly paramTypes: {};
|
|
3358
|
+
constructor(params?: RowL2NormalizeParams);
|
|
3359
|
+
transform(X: Matrix): Matrix;
|
|
3360
|
+
}
|
|
3351
3361
|
/** Parameters of SimpleScale; unset values take the native defaults. */
|
|
3352
3362
|
export interface SimpleScaleParams {
|
|
3353
3363
|
}
|
|
@@ -2639,6 +2639,19 @@ export class Normalize extends NativeEstimator {
|
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
2641
2641
|
NativeMethod.register("preprocessing.scaling.normalize", Normalize);
|
|
2642
|
+
/** Native `preprocessing.scaling.row_l2_normalize` (transformer). */
|
|
2643
|
+
export class RowL2Normalize extends NativeEstimator {
|
|
2644
|
+
methodId = "preprocessing.scaling.row_l2_normalize";
|
|
2645
|
+
paramTypes = {};
|
|
2646
|
+
constructor(params = {}) {
|
|
2647
|
+
super();
|
|
2648
|
+
this.params = { ...params };
|
|
2649
|
+
}
|
|
2650
|
+
transform(X) {
|
|
2651
|
+
return this.transformMatrix(X);
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
NativeMethod.register("preprocessing.scaling.row_l2_normalize", RowL2Normalize);
|
|
2642
2655
|
/** Native `preprocessing.scaling.simple_scale` (transformer). */
|
|
2643
2656
|
export class SimpleScale extends NativeEstimator {
|
|
2644
2657
|
methodId = "preprocessing.scaling.simple_scale";
|
package/dist/n4m.wasm
CHANGED
|
Binary file
|
package/dist/preprocessing.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
// 0 mirror, 1 constant, 2 nearest, 3 wrap, 4 interp
|
|
19
19
|
// Derivative : [order] (1 → 1st, ≥2 → 2nd derivative)
|
|
20
20
|
// Detrend : [polyorder]
|
|
21
|
-
//
|
|
21
|
+
// Row L2 uses the generic RowL2Normalize transformer; ppCreate has no Normalize token.
|
|
22
22
|
// GaussianFilter : [sigma]
|
|
23
23
|
import { getModule, checkStatus } from "./ffi.js";
|
|
24
24
|
function pushF64(m, data) {
|
package/package.json
CHANGED