nmr-processing 11.11.0 → 11.11.1-pre.1709992653

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.
@@ -623,6 +623,11 @@ export declare interface GetPeakListOptions extends GSDOptions, OptimizePeaksOpt
623
623
  * frequency used to convert width and fwhm to Hz
624
624
  */
625
625
  frequency: number;
626
+ /**
627
+ * maximum absolute value of the second derivative of the intensity array, if it is not passed
628
+ * the function will calculate it.
629
+ */
630
+ maxAbsDdY?: number;
626
631
  }
627
632
 
628
633
  export declare function getShiftX(spectrum: Entry1D): number;
@@ -3123,7 +3128,7 @@ export declare function rangeFromSignal(signal: NMRSignal1D, options?: RangeFrom
3123
3128
  export declare interface RangeFromSignalOptions {
3124
3129
  /**
3125
3130
  * nucleus
3126
- * @default '1h'
3131
+ * @default '1H'
3127
3132
  */
3128
3133
  nucleus?: string;
3129
3134
  /**
@@ -3132,7 +3137,7 @@ export declare interface RangeFromSignalOptions {
3132
3137
  */
3133
3138
  frequency?: number;
3134
3139
  /**
3135
- * tolerance to the halfWidth, default depends of the nucleus
3140
+ * tolerance to the halfWidth, default depends on the nucleus
3136
3141
  */
3137
3142
  tolerance?: number;
3138
3143
  }
@@ -3179,11 +3184,21 @@ export declare interface RangesToACSOptions {
3179
3184
  solvent?: string;
3180
3185
  }
3181
3186
 
3182
- export declare function rangesToXY(ranges: NMRRange[], options?: any): {
3183
- x: DoubleArray;
3187
+ export declare function rangesToXY(ranges: NMRRange[], options?: RangesToXYOptions): {
3188
+ x: Float64Array;
3184
3189
  y: Float64Array;
3185
3190
  };
3186
3191
 
3192
+ export declare interface RangesToXYOptions {
3193
+ nucleus?: string;
3194
+ frequency?: number;
3195
+ nbPoints?: number;
3196
+ lineWidth?: number;
3197
+ shape?: Shape1D;
3198
+ from?: number;
3199
+ to?: number;
3200
+ }
3201
+
3187
3202
  export declare interface RangeToXYOptions {
3188
3203
  /**
3189
3204
  * frequency observed
@@ -3406,7 +3421,11 @@ export declare function signalsToFID(signals: NMRSignal1D[], options: SignalsToF
3406
3421
  re: DoubleArray;
3407
3422
  im: DoubleArray;
3408
3423
  } | {
3409
- re: DoubleArray;
3424
+ re: DoubleArray; /**
3425
+ * at the end of the superposition of all component, an exponential apodization will be applied
3426
+ * in order to have FID like shape.
3427
+ * @default 1
3428
+ */
3410
3429
  im: DoubleArray;
3411
3430
  };
3412
3431
 
@@ -3734,7 +3753,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
3734
3753
  predicted: Float64Array;
3735
3754
  };
3736
3755
 
3737
- export declare function xyAutoPeaksPicking(data: DataXY, options: OptionsXYAutoPeaksPicking): NMRPeak1DWithShapeID[];
3756
+ export declare function xyAutoPeaksPicking(data: DataXY<Float64Array>, options: OptionsXYAutoPeaksPicking): NMRPeak1DWithShapeID[];
3738
3757
 
3739
3758
  /**
3740
3759
  * error for default windowSize computation
@@ -3748,7 +3767,7 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
3748
3767
  /**
3749
3768
  * Detect peaks, optimize parameters and compile multiplicity if required.
3750
3769
  */
3751
- export declare function xyAutoRangesPicking(data: DataXY, options: OptionsXYAutoRangesPicking): NMRRange[];
3770
+ export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange[];
3752
3771
 
3753
3772
  export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
3754
3773
  relaxationT1: number;