nmr-processing 22.14.0 → 22.15.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.
@@ -19,6 +19,7 @@ import type { BaselineCorrectionOptions } from '@zakodium/nmr-types';
19
19
  import type { BaselineCorrectionZone } from '@zakodium/nmr-types';
20
20
  import { BaseRegression } from 'ml-regression-base';
21
21
  import type { DataReIm } from 'ml-spectra-processing';
22
+ import type { DataReImMatrix } from 'ml-spectra-processing';
22
23
  import type { DataXReIm } from 'ml-spectra-processing';
23
24
  import { DataXY } from 'cheminfo-types';
24
25
  import type { DigitalFilter2DOptions } from '@zakodium/nmr-types';
@@ -59,7 +60,7 @@ import type { JoinBroadPeaksOptions } from 'ml-gsd';
59
60
  import type { LevenbergMarquardtOptions } from 'ml-levenberg-marquardt';
60
61
  import type { LightLogger } from 'cheminfo-types';
61
62
  import type { Logger } from 'cheminfo-types';
62
- import { Matrix } from 'ml-matrix';
63
+ import type { Matrix } from 'ml-matrix';
63
64
  import type { MatrixOptions } from '@zakodium/nmr-types';
64
65
  import type { Molecule } from 'openchemlib';
65
66
  import type { NmrData1D } from 'cheminfo-types';
@@ -598,18 +599,12 @@ declare type FFTDimension1 = FilterFactory<Entry2D, DirectDimensionOptions> & Pi
598
599
 
599
600
  declare type FFTDimension2 = FilterFactory<Entry2D, IndirectDimensionOptions> & Pick<FFTDimension2Options, 'name'>;
600
601
 
601
- export declare function fftDirectDimension(data: {
602
- re: DoubleArray[];
603
- im: DoubleArray[];
604
- }, options?: DirectDimensionOptions): {
605
- re: Matrix;
606
- im: Matrix;
602
+ export declare function fftDirectDimension(data: DataReImMatrix, options?: DirectDimensionOptions): {
603
+ re: Float64Array[];
604
+ im: Float64Array[];
607
605
  };
608
606
 
609
- export declare function fftIndirectDimension(data: {
610
- re: DoubleArray[] | Matrix;
611
- im: DoubleArray[] | Matrix;
612
- }, options?: IndirectDimensionOptions): Record<string, Matrix>;
607
+ export declare function fftIndirectDimension(data: DataReImMatrix, options?: IndirectDimensionOptions): Record<string, Float64Array<ArrayBufferLike>[]>;
613
608
 
614
609
  export declare type Filter1D = FFT1D | BaselineCorrection1D | BackwardLinearPrediction1D | Apodization1D | DigitalFilter | EquallySpaced | ExclusionZones | ForwardLP1D | PhaseCorrection1D | ShiftX | SignalProcessing | Trim | ZeroFilling;
615
610
 
@@ -915,18 +910,6 @@ export declare function getBaselineZonesByDietrich(data: NmrData1D, options?: Ba
915
910
 
916
911
  declare function getBonds(b: BondInput[]): BondOutput[];
917
912
 
918
- export declare function getColumnFrom(data: Matrix, info: {
919
- acquisitionScheme?: string;
920
- reverse?: boolean;
921
- index: number;
922
- }): {
923
- re: number[];
924
- im: Float64Array<ArrayBuffer>;
925
- } | {
926
- re: Float64Array<ArrayBuffer>;
927
- im: Float64Array<ArrayBuffer>;
928
- };
929
-
930
913
  declare function getCouplingGroups(cg: CouplingGroupInput[]): {
931
914
  id: string;
932
915
  parentID: string;