nmr-processing 15.1.0 → 15.1.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.
@@ -68,15 +68,15 @@ declare interface ApodizationDimension2Options extends BaseFilter {
68
68
  }
69
69
 
70
70
  export declare function apodizationXReIm(data: Required<NmrData1D>, options: Apodization2DOptions): {
71
- x: Float64Array;
72
- re: Float64Array;
73
- im: Float64Array;
71
+ x: Float64Array<ArrayBufferLike>;
72
+ re: Float64Array<ArrayBufferLike>;
73
+ im: Float64Array<ArrayBufferLike>;
74
74
  };
75
75
 
76
76
  /**
77
77
  * pure function that applies a window function to the input data.
78
78
  */
79
- export declare function apodize(data: DoubleArray, options: ApplyWindowOptions): Float64Array;
79
+ export declare function apodize(data: DoubleArray, options: ApplyWindowOptions): Float64Array<ArrayBufferLike>;
80
80
 
81
81
  declare function applyFilter(datum: Entry1D, filter: Filter1DOptions, logger?: Logger): void;
82
82
 
@@ -333,7 +333,7 @@ export declare function createApodizationWindowData(options: {
333
333
  length: number;
334
334
  };
335
335
  shapes: Shapes;
336
- }): Float64Array;
336
+ }): Float64Array<ArrayBuffer>;
337
337
 
338
338
  /**
339
339
  * This function converts a set of 2D-peaks in 2D-signals. Each signal could be composed
@@ -641,7 +641,7 @@ declare namespace Filters2DManager {
641
641
  export { Filters2DManager }
642
642
 
643
643
  /**
644
- * look for a multiplet based on the pattern name or abbreviation.
644
+ * Look for a multiplet based on the pattern name or abbreviation.
645
645
  * @param name - pattern name or abbreviation.
646
646
  */
647
647
  export declare function findMultiplet(name: string): MultipletDefinition | undefined;
@@ -1172,16 +1172,16 @@ export declare function matrixToBoxPlot(input: NumberArray[], options?: {
1172
1172
  colors?: string[];
1173
1173
  }): {
1174
1174
  color: any[];
1175
- max: Float64Array;
1176
- min: Float64Array;
1177
- median: Float64Array;
1178
- q1: Float64Array;
1179
- q3: Float64Array;
1175
+ max: Float64Array<ArrayBufferLike>;
1176
+ min: Float64Array<ArrayBufferLike>;
1177
+ median: Float64Array<ArrayBufferLike>;
1178
+ q1: Float64Array<ArrayBufferLike>;
1179
+ q3: Float64Array<ArrayBufferLike>;
1180
1180
  };
1181
1181
 
1182
1182
  export declare function matrixToStocsy(matrix: NumberArray[], index: number, options?: MatrixToStocsyOptions): {
1183
1183
  y: number[];
1184
- correlations: Float64Array;
1184
+ correlations: Float64Array<ArrayBuffer>;
1185
1185
  color: any[];
1186
1186
  };
1187
1187
 
@@ -1591,11 +1591,11 @@ export declare function peaksToFID(peaks: Array<{
1591
1591
  }>, options: SignalsToFIDOptions & {
1592
1592
  t2Relaxation?: NumberArray;
1593
1593
  }): {
1594
- re: Float64Array;
1595
- im: Float64Array;
1594
+ re: Float64Array<ArrayBuffer>;
1595
+ im: Float64Array<ArrayBuffer>;
1596
1596
  };
1597
1597
 
1598
- export declare function peaksToXY(peaks: NMRPeak1D[], options: PeaksToXYOptions): DataXY<Float64Array>;
1598
+ export declare function peaksToXY(peaks: NMRPeak1D[], options: PeaksToXYOptions): DataXY<Float64Array<ArrayBufferLike>>;
1599
1599
 
1600
1600
  /**
1601
1601
  * Convert an array of peaks assuming that width/fwhm is in Hz
@@ -1617,7 +1617,7 @@ export declare interface PeaksToXYOptions extends OptionsSG1D {
1617
1617
  frequency: number;
1618
1618
  }
1619
1619
 
1620
- export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array>;
1620
+ export declare function peakToXY(peak: NMRPeak1D, options: PeaksToXYOptions): DataXY<Float64Array<ArrayBufferLike>>;
1621
1621
 
1622
1622
  declare interface PhaseCorrection {
1623
1623
  mode?: string;
@@ -2004,8 +2004,8 @@ export declare interface RangesToACSOptions {
2004
2004
  export declare function rangesToTSV(ranges: NMRRange[]): string;
2005
2005
 
2006
2006
  export declare function rangesToXY(ranges: NMRRange[], options?: RangesToXYOptions): {
2007
- x: Float64Array;
2008
- y: Float64Array;
2007
+ x: Float64Array<ArrayBufferLike>;
2008
+ y: Float64Array<ArrayBuffer>;
2009
2009
  };
2010
2010
 
2011
2011
  export declare interface RangesToXYOptions {
@@ -2294,8 +2294,8 @@ export declare interface SignalsJoinOptions {
2294
2294
  * imaginary parts, that is why the couplings should be assigned in order to generate the spin system.
2295
2295
  */
2296
2296
  export declare function signalsToFID(signals: NMRSignal1D[], options: SignalsToFIDOptions): {
2297
- re: Float64Array;
2298
- im: Float64Array;
2297
+ re: Float64Array<ArrayBuffer>;
2298
+ im: Float64Array<ArrayBuffer>;
2299
2299
  };
2300
2300
 
2301
2301
  export declare interface SignalsToFIDOptions {
@@ -2353,12 +2353,12 @@ declare interface SignalsToRangesOptions {
2353
2353
  /**
2354
2354
  * Generate a spectrum from an array of singals
2355
2355
  */
2356
- export declare function signalsToXY(signals: NMRSignal1D[], options?: OptionsSignalsToXY): DataXY<Float64Array>;
2356
+ export declare function signalsToXY(signals: NMRSignal1D[], options?: OptionsSignalsToXY): DataXY<Float64Array<ArrayBufferLike>>;
2357
2357
 
2358
2358
  /**
2359
2359
  * This function simulates a one dimensional nmr spectrum. This function returns an array containing the relative intensities of the spectrum in the specified simulation window (from-to).
2360
2360
  */
2361
- export declare function simulate1D(spinSystemInput: SpinSystem, options?: Simulate1DOptions): DataXY<Float64Array>;
2361
+ export declare function simulate1D(spinSystemInput: SpinSystem, options?: Simulate1DOptions): DataXY<Float64Array<ArrayBufferLike>>;
2362
2362
 
2363
2363
  declare interface Simulate1DOptions {
2364
2364
  /**
@@ -2600,8 +2600,8 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
2600
2600
  * to append the predicted points is it needed to append nbPoints zeros at the beginning of input data.
2601
2601
  */
2602
2602
  export declare function xBackwardLinearPrediction(data: DoubleArray, options: BackwardLPOptions): {
2603
- output: Float64Array;
2604
- predicted: Float64Array;
2603
+ output: Float64Array<ArrayBufferLike>;
2604
+ predicted: Float64Array<ArrayBuffer>;
2605
2605
  };
2606
2606
 
2607
2607
  /**
@@ -2609,8 +2609,8 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
2609
2609
  * to append the predicted points is it needed to append nbPoints zeros at the beginning of input data.
2610
2610
  */
2611
2611
  export declare function xForwardLinearPrediction(data: DoubleArray, options: ForwardLPOptions): {
2612
- output: Float64Array;
2613
- predicted: Float64Array;
2612
+ output: Float64Array<ArrayBufferLike>;
2613
+ predicted: Float64Array<ArrayBuffer>;
2614
2614
  };
2615
2615
 
2616
2616
  export declare interface XreimMultipletAnalysis {