nmr-processing 22.10.0 → 22.10.2

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.
@@ -1,4 +1,7 @@
1
- import type { AnalizeMultipletOptions } from 'multiplet-analysis';
1
+ import type { AnalyseMultipletOptionsNormal } from 'multiplet-analysis';
2
+ import type { AnalyseMultipletOptionsWithDebug } from 'multiplet-analysis';
3
+ import type { AnalyseMultipletResult } from 'multiplet-analysis';
4
+ import type { AnalyseMultipletResultWithDebug } from 'multiplet-analysis';
2
5
  import type { Apodization1DFilterOptions } from '@zakodium/nmr-types';
3
6
  import type { Apodization1DOptions } from '@zakodium/nmr-types';
4
7
  import type { Apodization2D1Options } from '@zakodium/nmr-types';
@@ -2195,7 +2198,7 @@ declare type SignalForMapping = Pick<Signal2D, 'kind'> & {
2195
2198
  * @param signal
2196
2199
  * @param options
2197
2200
  */
2198
- export declare function signalJoinCouplings(signal: NMRSignal1D, options?: SignalJoinCouplingsOptions): NMRSignal1D;
2201
+ export declare function signalJoinCouplings<S extends SignalMaybeJcoupling>(signal: S, options?: SignalJoinCouplingsOptions): S;
2199
2202
 
2200
2203
  export declare interface SignalJoinCouplingsOptions {
2201
2204
  /**
@@ -2219,6 +2222,8 @@ export declare const signalKindLabelMapping: Readonly<Record<SignalKind, string>
2219
2222
 
2220
2223
  export declare const signalKindsToInclude: ReadonlySet<SignalKind>;
2221
2224
 
2225
+ declare type SignalMaybeJcoupling = Pick<NMRSignal1D, 'js'>;
2226
+
2222
2227
  /**
2223
2228
  * Return
2224
2229
  * @param signal
@@ -2646,22 +2651,31 @@ export declare function xForwardLinearPrediction(data: DoubleArray, options: For
2646
2651
  predicted: Float64Array<ArrayBuffer>;
2647
2652
  };
2648
2653
 
2649
- export declare interface XreimMultipletAnalysis {
2650
- analyzer?: AnalizeMultipletOptions;
2651
- autoPhase?: boolean;
2652
- }
2653
-
2654
2654
  /**
2655
2655
  * Determination of J couplings by recursive deconvolution in the frequency domain,
2656
- * it use the method published by Damien Jeannerat and Geoffrey Bodenhausen @link{https://doi.org/10.1006/jmre.1999.1845}
2657
- * @param data
2656
+ * it uses the method published by Damien Jeannerat and Geoffrey Bodenhausen @link{https://doi.org/10.1006/jmre.1999.1845}
2657
+ * @param data - Imaginary data is optional for auto phase correction of the region before the analysis.
2658
2658
  * @param options
2659
2659
  */
2660
- export declare function xreimMultipletAnalysis(
2661
- /**
2662
- * Imaginary data is optional for auto phase correction of the region before the analysis.
2663
- */
2664
- data: DataXReOptionalIm, options?: XreimMultipletAnalysis): any;
2660
+ export declare function xreimMultipletAnalysis(data: DataXReOptionalIm, options: XreimMultipletAnalysisOptionsNormal): AnalyseMultipletResult;
2661
+
2662
+ export declare function xreimMultipletAnalysis(data: DataXReOptionalIm, options: XreimMultipletAnalysisOptionsWithDebug): AnalyseMultipletResultWithDebug;
2663
+
2664
+ export declare interface XreimMultipletAnalysisOptionsBase {
2665
+ autoPhase?: boolean;
2666
+ }
2667
+
2668
+ export declare interface XreimMultipletAnalysisOptionsNormal extends XreimMultipletAnalysisOptionsBase {
2669
+ analyzer: AnalyseMultipletOptionsNormal;
2670
+ }
2671
+
2672
+ export declare interface XreimMultipletAnalysisOptionsWithDebug extends XreimMultipletAnalysisOptionsBase {
2673
+ analyzer: AnalyseMultipletOptionsWithDebug;
2674
+ }
2675
+
2676
+ export declare type XreimMultipletAnalysisResult = AnalyseMultipletResult;
2677
+
2678
+ export declare type XreimMultipletAnalysisResultWithDebug = AnalyseMultipletResultWithDebug;
2665
2679
 
2666
2680
  /**
2667
2681
  * Trims the input arrays in the object by removing points from the low and high according to the provided options.