nmr-processing 14.0.4 → 14.0.6
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.
- package/nmr-processing.cjs +3 -3
- package/nmr-processing.d.ts +42 -2
- package/nmr-processing.mjs +3 -3
- package/package.json +4 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -264,6 +264,21 @@ declare interface BooleanField extends Field<boolean> {
|
|
|
264
264
|
|
|
265
265
|
declare type CacheResult = EmptyValue | PredictionBase1D | Promise<EmptyValue | PredictionBase1D>;
|
|
266
266
|
|
|
267
|
+
export declare interface CalculateDiffussionCoefficientOptions {
|
|
268
|
+
/**
|
|
269
|
+
* gyromagnetic ratio, it is based in the nucleus
|
|
270
|
+
*/
|
|
271
|
+
gyromagneticRatio: number;
|
|
272
|
+
/**
|
|
273
|
+
* pulse field gradient duraction, it assume that only the amplitude is variable.
|
|
274
|
+
*/
|
|
275
|
+
gradientPulseDuration: number;
|
|
276
|
+
/**
|
|
277
|
+
* it depends of the experiment and include the diffusion time.
|
|
278
|
+
*/
|
|
279
|
+
timeCorrection: number;
|
|
280
|
+
}
|
|
281
|
+
|
|
267
282
|
declare interface CalculateT1Options {
|
|
268
283
|
optimization?: any;
|
|
269
284
|
}
|
|
@@ -392,6 +407,16 @@ declare function deleteFilter(datum: Entry1D, id?: string, logger?: Logger): voi
|
|
|
392
407
|
|
|
393
408
|
declare function deleteFilter_2(datum: Entry2D, id?: string, logger?: Logger): void;
|
|
394
409
|
|
|
410
|
+
declare class DiffusionRegression extends BaseRegression {
|
|
411
|
+
coefficient: number;
|
|
412
|
+
signalAbsenseDiffussion: number;
|
|
413
|
+
gyromagneticRatio: number;
|
|
414
|
+
gradientPulseDuration: number;
|
|
415
|
+
timeCorrection: number;
|
|
416
|
+
constructor(coefficient: number, signalAbsenseDiffussion: number, options: CalculateDiffussionCoefficientOptions);
|
|
417
|
+
_predict(gradientAmplitude: number): number;
|
|
418
|
+
}
|
|
419
|
+
|
|
395
420
|
declare type DigitalFilter = FilterFactory<Entry1D, DigitalFilterOptions> & Pick<DigitalFilterOption, 'name'>;
|
|
396
421
|
|
|
397
422
|
declare type DigitalFilter2D = FilterFactory<Entry2D, DigitalFilterOptions_2> & Pick<DigitalFilter2DOptions, 'name'>;
|
|
@@ -922,6 +947,7 @@ export declare interface Info1D extends Info {
|
|
|
922
947
|
|
|
923
948
|
export declare interface Info2D extends Info {
|
|
924
949
|
nucleus: string[];
|
|
950
|
+
isFtDimensionOne: boolean;
|
|
925
951
|
digitalFilter?: number;
|
|
926
952
|
originFrequency: number[];
|
|
927
953
|
baseFrequency: number[];
|
|
@@ -2000,12 +2026,12 @@ declare namespace RangeUtilities {
|
|
|
2000
2026
|
}
|
|
2001
2027
|
export { RangeUtilities }
|
|
2002
2028
|
|
|
2003
|
-
declare function reapplyFilters(datum: Entry1D, options
|
|
2029
|
+
declare function reapplyFilters(datum: Entry1D, options?: {
|
|
2004
2030
|
filters?: Filter1DOptions[];
|
|
2005
2031
|
logger?: Logger;
|
|
2006
2032
|
}): void;
|
|
2007
2033
|
|
|
2008
|
-
declare function reapplyFilters_2(datum: Entry2D, options
|
|
2034
|
+
declare function reapplyFilters_2(datum: Entry2D, options?: {
|
|
2009
2035
|
filters?: Filter2DOptions[];
|
|
2010
2036
|
logger?: Logger;
|
|
2011
2037
|
}): void;
|
|
@@ -2565,6 +2591,20 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
2565
2591
|
*/
|
|
2566
2592
|
export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange[];
|
|
2567
2593
|
|
|
2594
|
+
/**
|
|
2595
|
+
* Estimate the diffusion coefficient of an independent component by fitting of imput data with the Stejskal–Tanner equation.
|
|
2596
|
+
*/
|
|
2597
|
+
export declare function xyCalculateDiffussionCoefficient(
|
|
2598
|
+
/**
|
|
2599
|
+
* x is the amplitude of the pulse field gradient
|
|
2600
|
+
* y is the exponential decay signal.
|
|
2601
|
+
*/
|
|
2602
|
+
data: DataXY, options: CalculateDiffussionCoefficientOptions): {
|
|
2603
|
+
regression: DiffusionRegression;
|
|
2604
|
+
coefficient: number;
|
|
2605
|
+
signalAbsenseDiffussion: number;
|
|
2606
|
+
};
|
|
2607
|
+
|
|
2568
2608
|
export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
|
|
2569
2609
|
relaxationT1: number;
|
|
2570
2610
|
fullMagnetization: number;
|