nmr-processing 12.2.0 → 12.3.0
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 +1 -1
- package/nmr-processing.d.ts +37 -0
- package/nmr-processing.mjs +1 -1
- package/package.json +7 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import BaseRegression from 'ml-regression-base';
|
|
1
2
|
import { DataXReIm } from 'ml-spectra-processing';
|
|
2
3
|
import { DataXY } from 'cheminfo-types';
|
|
3
4
|
import { DoubleArray } from 'cheminfo-types';
|
|
5
|
+
import ExponentialRegression from 'ml-regression-exponential';
|
|
4
6
|
import type { FilterXYType } from 'ml-signal-processing';
|
|
5
7
|
import { FromTo } from 'cheminfo-types';
|
|
6
8
|
import { GSDOptions } from 'ml-gsd';
|
|
@@ -16,6 +18,7 @@ import { NmrData2D } from 'cheminfo-types';
|
|
|
16
18
|
import { NmrData2DContent } from 'cheminfo-types';
|
|
17
19
|
import { NmrData2DFt } from 'cheminfo-types';
|
|
18
20
|
import { Nuclei } from 'gyromagnetic-ratio';
|
|
21
|
+
import { NumberArray } from 'cheminfo-types';
|
|
19
22
|
import { OCLMolecule } from 'cheminfo-types';
|
|
20
23
|
import { OptimizePeaksOptions } from 'ml-gsd';
|
|
21
24
|
import { OptionsSG1D } from 'spectrum-generator';
|
|
@@ -2453,6 +2456,26 @@ export declare interface MatrixOptions {
|
|
|
2453
2456
|
|
|
2454
2457
|
declare type MatrixProperties = Record<string, Properties>;
|
|
2455
2458
|
|
|
2459
|
+
export declare function matrixToBoxPlot(input: NumberArray[], options?: {
|
|
2460
|
+
colors?: string[];
|
|
2461
|
+
}): {
|
|
2462
|
+
color: any[];
|
|
2463
|
+
max: NumberArray;
|
|
2464
|
+
min: NumberArray;
|
|
2465
|
+
median: NumberArray;
|
|
2466
|
+
q1: NumberArray;
|
|
2467
|
+
q3: NumberArray;
|
|
2468
|
+
};
|
|
2469
|
+
|
|
2470
|
+
export declare function matrixToStocsy(matrix: NumberArray[], index: number, options?: MatrixToStocsyOptions): {
|
|
2471
|
+
y: Float64Array;
|
|
2472
|
+
color: any[];
|
|
2473
|
+
};
|
|
2474
|
+
|
|
2475
|
+
declare interface MatrixToStocsyOptions {
|
|
2476
|
+
colors?: string[];
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2456
2479
|
declare interface ModifiedGaussian<ShapeOption = ModifiedGaussianOptions> {
|
|
2457
2480
|
kind: 'modifiedGaussian';
|
|
2458
2481
|
options: ShapeOption;
|
|
@@ -3705,6 +3728,13 @@ export declare interface SumOptions {
|
|
|
3705
3728
|
moleculeId?: string;
|
|
3706
3729
|
}
|
|
3707
3730
|
|
|
3731
|
+
declare class T1Regression extends BaseRegression {
|
|
3732
|
+
fullMagnetization: number;
|
|
3733
|
+
relaxationT1: number;
|
|
3734
|
+
constructor(fullMagnetization: number, relaxationT1: number);
|
|
3735
|
+
_predict(x: number): number;
|
|
3736
|
+
}
|
|
3737
|
+
|
|
3708
3738
|
export declare type Targets = Record<string, NMRRangeWithIntegration>;
|
|
3709
3739
|
|
|
3710
3740
|
declare interface Traf<ShapeOption = TrafOptions> {
|
|
@@ -3801,6 +3831,13 @@ declare function unlink(range: Range_2, options?: UnlinkOptions): Range_2;
|
|
|
3801
3831
|
export declare function xyCalculateT1(data: DataXY, options?: CalculateT1Options): {
|
|
3802
3832
|
relaxationT1: number;
|
|
3803
3833
|
fullMagnetization: number;
|
|
3834
|
+
regression: T1Regression;
|
|
3835
|
+
};
|
|
3836
|
+
|
|
3837
|
+
export declare function xyKineticFirstOrder(data: DataXY): {
|
|
3838
|
+
regression: ExponentialRegression;
|
|
3839
|
+
rateConstant: number;
|
|
3840
|
+
initialConcentration: number;
|
|
3804
3841
|
};
|
|
3805
3842
|
|
|
3806
3843
|
export declare function xyPeaksOptimization<T extends PeakXYWidth>(data: DataXY, peaks: T[], options: XYPeaksOptimizationOptions): (T extends {
|