nmr-processing 14.0.3 → 14.0.4-pre.1732331477

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.
@@ -258,6 +258,21 @@ declare interface BooleanField extends Field<boolean> {
258
258
 
259
259
  declare type CacheResult = EmptyValue | PredictionBase1D | Promise<EmptyValue | PredictionBase1D>;
260
260
 
261
+ export declare interface CalculateDiffussionCoefficientOptions {
262
+ /**
263
+ * gyromagnetic ratio, it is based in the nucleus
264
+ */
265
+ gyromagneticRatio: number;
266
+ /**
267
+ * pulse field gradient duraction, it assume that only the amplitude is variable.
268
+ */
269
+ gradientPulseDuration: number;
270
+ /**
271
+ * it depends of the experiment and include the diffusion time.
272
+ */
273
+ timeCorrection: number;
274
+ }
275
+
261
276
  declare interface CalculateT1Options {
262
277
  optimization?: any;
263
278
  }
@@ -386,6 +401,16 @@ declare function deleteFilter(datum: Entry1D, id?: string): void;
386
401
 
387
402
  declare function deleteFilter_2(datum: Entry2D, id?: string): void;
388
403
 
404
+ declare class DiffusionRegression extends BaseRegression {
405
+ coefficient: number;
406
+ signalAbsenseDiffussion: number;
407
+ gyromagneticRatio: number;
408
+ gradientPulseDuration: number;
409
+ timeCorrection: number;
410
+ constructor(coefficient: number, signalAbsenseDiffussion: number, options: CalculateDiffussionCoefficientOptions);
411
+ _predict(gradientAmplitude: number): number;
412
+ }
413
+
389
414
  declare type DigitalFilter = FilterFactory<Entry1D, DigitalFilterOptions> & Pick<DigitalFilterOption, 'name'>;
390
415
 
391
416
  declare type DigitalFilter2D = FilterFactory<Entry2D, DigitalFilterOptions_2> & Pick<DigitalFilter2DOptions, 'name'>;
@@ -2541,6 +2566,20 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
2541
2566
  */
2542
2567
  export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange[];
2543
2568
 
2569
+ /**
2570
+ * Estimate the diffusion coefficient of an independent component by fitting of imput data with the Stejskal–Tanner equation.
2571
+ */
2572
+ export declare function xyCalculateDiffussionCoefficient(
2573
+ /**
2574
+ * x is the amplitude of the pulse field gradient
2575
+ * y is the exponential decay signal.
2576
+ */
2577
+ data: DataXY, options: CalculateDiffussionCoefficientOptions): {
2578
+ regression: DiffusionRegression;
2579
+ coefficient: number;
2580
+ signalAbsenseDiffussion: number;
2581
+ };
2582
+
2544
2583
  export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
2545
2584
  relaxationT1: number;
2546
2585
  fullMagnetization: number;