@nirs4all/methods 1.4.0 → 1.4.1
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 +1 -1
- package/dist/estimatorRolesGenerated.d.ts +26 -0
- package/dist/estimatorRolesGenerated.js +19 -0
- package/dist/n4m.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,7 +57,7 @@ restores the original typed label table; omitting it exposes native class IDs.
|
|
|
57
57
|
import * as n4m from "@nirs4all/methods";
|
|
58
58
|
|
|
59
59
|
await n4m.loadModule();
|
|
60
|
-
console.log(n4m.version()); // "1.4.
|
|
60
|
+
console.log(n4m.version()); // "1.4.1+abi.2.24.0"
|
|
61
61
|
console.log(n4m.abiVersion()); // [2, 24, 0]
|
|
62
62
|
|
|
63
63
|
const rows = 40, cols = 6;
|
|
@@ -1816,6 +1816,32 @@ export declare class SpectralNoiseProxy extends NativeProcedure implements Proce
|
|
|
1816
1816
|
constructor(params?: SpectralNoiseProxyParams);
|
|
1817
1817
|
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1818
1818
|
}
|
|
1819
|
+
/** Parameters of SpectralPopulationEventsQc; unset values take the native defaults. */
|
|
1820
|
+
export interface SpectralPopulationEventsQcParams {
|
|
1821
|
+
/** Default []. */
|
|
1822
|
+
valid_mask?: number[];
|
|
1823
|
+
/** Default "index". */
|
|
1824
|
+
axis_basis?: "index" | "physical";
|
|
1825
|
+
/** Default []. */
|
|
1826
|
+
axis_values?: number[];
|
|
1827
|
+
/** Default 8. */
|
|
1828
|
+
outlier_threshold?: number;
|
|
1829
|
+
/** Default 5. */
|
|
1830
|
+
min_spectra?: number;
|
|
1831
|
+
}
|
|
1832
|
+
/** Native `diagnostics.spectral_population_events_qc` (generic). */
|
|
1833
|
+
export declare class SpectralPopulationEventsQc extends NativeProcedure implements Procedure {
|
|
1834
|
+
readonly methodId = "diagnostics.spectral_population_events_qc";
|
|
1835
|
+
readonly paramTypes: {
|
|
1836
|
+
readonly valid_mask: "int_array";
|
|
1837
|
+
readonly axis_basis: "enum";
|
|
1838
|
+
readonly axis_values: "double_array";
|
|
1839
|
+
readonly outlier_threshold: "double";
|
|
1840
|
+
readonly min_spectra: "int";
|
|
1841
|
+
};
|
|
1842
|
+
constructor(params?: SpectralPopulationEventsQcParams);
|
|
1843
|
+
run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
|
|
1844
|
+
}
|
|
1819
1845
|
/** Parameters of SpectralReferenceQc; unset values take the native defaults. */
|
|
1820
1846
|
export interface SpectralReferenceQcParams {
|
|
1821
1847
|
/** Default []. */
|
|
@@ -1286,6 +1286,25 @@ export class SpectralNoiseProxy extends NativeProcedure {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
1288
|
NativeMethod.register("diagnostics.spectral_noise_proxy", SpectralNoiseProxy);
|
|
1289
|
+
/** Native `diagnostics.spectral_population_events_qc` (generic). */
|
|
1290
|
+
export class SpectralPopulationEventsQc extends NativeProcedure {
|
|
1291
|
+
methodId = "diagnostics.spectral_population_events_qc";
|
|
1292
|
+
paramTypes = {
|
|
1293
|
+
valid_mask: "int_array",
|
|
1294
|
+
axis_basis: "enum",
|
|
1295
|
+
axis_values: "double_array",
|
|
1296
|
+
outlier_threshold: "double",
|
|
1297
|
+
min_spectra: "int",
|
|
1298
|
+
};
|
|
1299
|
+
constructor(params = {}) {
|
|
1300
|
+
super();
|
|
1301
|
+
this.params = { ...params };
|
|
1302
|
+
}
|
|
1303
|
+
run(X, y, inputs = {}) {
|
|
1304
|
+
return this.runOutputs(X, y, inputs);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
NativeMethod.register("diagnostics.spectral_population_events_qc", SpectralPopulationEventsQc);
|
|
1289
1308
|
/** Native `diagnostics.spectral_reference_qc` (generic). */
|
|
1290
1309
|
export class SpectralReferenceQc extends NativeProcedure {
|
|
1291
1310
|
methodId = "diagnostics.spectral_reference_qc";
|
package/dist/n4m.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED