nmr-processing 22.8.4 → 22.9.1
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/dist/nmr-processing.d.ts +32 -1
- package/dist/nmr-processing.js +2 -2
- package/package.json +5 -5
package/dist/nmr-processing.d.ts
CHANGED
|
@@ -265,7 +265,7 @@ export declare interface BaselineZoneOptions {
|
|
|
265
265
|
minWidth?: number;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
declare interface BaselineZoneOptionsDietrich extends BaselineZoneOptions {
|
|
268
|
+
export declare interface BaselineZoneOptionsDietrich extends BaselineZoneOptions {
|
|
269
269
|
/**
|
|
270
270
|
* distance in number of points to join zones
|
|
271
271
|
*/
|
|
@@ -885,6 +885,14 @@ export declare interface GetAutoAssignmentInput {
|
|
|
885
885
|
molecule: Molecule;
|
|
886
886
|
}
|
|
887
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Compute baseline zones using Dietrich method and convert them to anchors.
|
|
890
|
+
* Defaults: `numAnchors = 10`, `algorithm = 'median'`.
|
|
891
|
+
*/
|
|
892
|
+
export declare function getBaselineAnchors(data: NmrData1D, options?: GetBaselineAnchrosOptions): DataXY;
|
|
893
|
+
|
|
894
|
+
export declare type GetBaselineAnchrosOptions = SelectAnchorOptions & BaselineZoneOptionsDietrich;
|
|
895
|
+
|
|
888
896
|
/**
|
|
889
897
|
* Need to find where is the baseline (so in fact only noise)
|
|
890
898
|
* The approach is to find the peaks using GSD and then to enlarge the peaks
|
|
@@ -2075,6 +2083,24 @@ export declare interface ResurrectOptions {
|
|
|
2075
2083
|
logger?: Logger;
|
|
2076
2084
|
}
|
|
2077
2085
|
|
|
2086
|
+
declare interface SelectAnchorOptions {
|
|
2087
|
+
/**
|
|
2088
|
+
* The number of anchors to select.
|
|
2089
|
+
*
|
|
2090
|
+
* Must be a positive integer.
|
|
2091
|
+
* @default 10
|
|
2092
|
+
*/
|
|
2093
|
+
numAnchors?: number;
|
|
2094
|
+
/**
|
|
2095
|
+
* Window size (in number of points) used by the 'median' algorithm when
|
|
2096
|
+
* computing the median around each target x value.
|
|
2097
|
+
*
|
|
2098
|
+
* If omitted, a sensible default of `Math.max(1, Math.floor(y.length / 100))`
|
|
2099
|
+
* is used inside the function.
|
|
2100
|
+
*/
|
|
2101
|
+
windowSize?: number;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2078
2104
|
declare type Shape1DWithFWHM = Omit<Shape1D, 'fwhm'> & {
|
|
2079
2105
|
fwhm: number;
|
|
2080
2106
|
};
|
|
@@ -2665,6 +2691,11 @@ export declare class XYAutoPeaksPickingWindowSizeError extends Error {
|
|
|
2665
2691
|
*/
|
|
2666
2692
|
export declare function xyAutoRangesPicking(data: DataXY<Float64Array>, options: OptionsXYAutoRangesPicking): NMRRange[];
|
|
2667
2693
|
|
|
2694
|
+
export declare function xyBaselineCalculation({ x, y }: {
|
|
2695
|
+
x: Float64Array;
|
|
2696
|
+
y: Float64Array;
|
|
2697
|
+
}, options: BaselineCorrectionOptions): Float64Array | number[];
|
|
2698
|
+
|
|
2668
2699
|
/**
|
|
2669
2700
|
* Estimate the diffusion coefficient of an independent component by fitting of imput data with the Stejskal–Tanner equation.
|
|
2670
2701
|
* @param data
|