@nirs4all/methods 1.3.2 → 1.3.4

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.
@@ -4657,6 +4657,29 @@ export declare class QResiduals extends NativeProcedure implements Procedure {
4657
4657
  constructor(params?: QResidualsParams);
4658
4658
  run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
4659
4659
  }
4660
+ /** Parameters of RaggedSummary; unset values take the native defaults. */
4661
+ export interface RaggedSummaryParams {
4662
+ /** Required. */
4663
+ offsets?: number[];
4664
+ /** Default []. */
4665
+ presence?: number[];
4666
+ /** Default []. */
4667
+ time_coordinates?: number[];
4668
+ /** Default "reject". */
4669
+ missing_policy?: "reject" | "zero_with_indicator";
4670
+ }
4671
+ /** Native `utilities.ragged_summary` (generic). */
4672
+ export declare class RaggedSummary extends NativeProcedure implements Procedure {
4673
+ readonly methodId = "utilities.ragged_summary";
4674
+ readonly paramTypes: {
4675
+ readonly offsets: "int_array";
4676
+ readonly presence: "int_array";
4677
+ readonly time_coordinates: "double_array";
4678
+ readonly missing_policy: "enum";
4679
+ };
4680
+ constructor(params?: RaggedSummaryParams);
4681
+ run(X: Matrix, y?: Matrix | Float64Array | ArrayLike<number>, inputs?: FitInputs): Record<string, ProcedureOutput>;
4682
+ }
4660
4683
  /** Parameters of SignalTypeDetector; unset values take the native defaults. */
4661
4684
  export interface SignalTypeDetectorParams {
4662
4685
  /** Default 0.7. */
@@ -3785,6 +3785,24 @@ export class QResiduals extends NativeProcedure {
3785
3785
  }
3786
3786
  }
3787
3787
  NativeMethod.register("utilities.q_residuals", QResiduals);
3788
+ /** Native `utilities.ragged_summary` (generic). */
3789
+ export class RaggedSummary extends NativeProcedure {
3790
+ methodId = "utilities.ragged_summary";
3791
+ paramTypes = {
3792
+ offsets: "int_array",
3793
+ presence: "int_array",
3794
+ time_coordinates: "double_array",
3795
+ missing_policy: "enum",
3796
+ };
3797
+ constructor(params = {}) {
3798
+ super();
3799
+ this.params = { ...params };
3800
+ }
3801
+ run(X, y, inputs = {}) {
3802
+ return this.runOutputs(X, y, inputs);
3803
+ }
3804
+ }
3805
+ NativeMethod.register("utilities.ragged_summary", RaggedSummary);
3788
3806
  /** Native `utilities.signal_type_detector` (generic). */
3789
3807
  export class SignalTypeDetector extends NativeProcedure {
3790
3808
  methodId = "utilities.signal_type_detector";
package/dist/n4m.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nirs4all/methods",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "WebAssembly build of libn4m (nirs4all-methods) — portable PLS/NIRS engine and native method bindings.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",