nmr-processing 12.10.0 → 12.10.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/nmr-processing.cjs +3 -3
- package/nmr-processing.d.ts +9 -6
- package/nmr-processing.mjs +3 -3
- package/package.json +1 -1
package/nmr-processing.d.ts
CHANGED
|
@@ -161,7 +161,7 @@ export declare interface BaselineCorrectionZone {
|
|
|
161
161
|
id: string;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
declare interface BaselineZoneOptions {
|
|
164
|
+
export declare interface BaselineZoneOptions {
|
|
165
165
|
/**
|
|
166
166
|
* The width factor to use to enlarge the peaks width
|
|
167
167
|
* @default 20
|
|
@@ -189,6 +189,13 @@ declare interface BaselineZoneOptions {
|
|
|
189
189
|
minWidth?: number;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
+
declare interface BaselineZoneOptionsDietrich extends BaselineZoneOptions {
|
|
193
|
+
/**
|
|
194
|
+
* distance in number of points to join zones
|
|
195
|
+
*/
|
|
196
|
+
maxDistanceToJoin?: number;
|
|
197
|
+
}
|
|
198
|
+
|
|
192
199
|
declare interface BasePeak {
|
|
193
200
|
id: string;
|
|
194
201
|
}
|
|
@@ -618,11 +625,7 @@ export declare function getBaselineZones(data: NmrData1D, options?: BaselineZone
|
|
|
618
625
|
* Generate baseline zones by Dietrich method, it uses an iterative thresholding to discard signals zones over a power spectrum.
|
|
619
626
|
* the implementation is based on the publication of Cobas et al (DOI: {@link https://doi.org/10.1016/j.jmr.2006.07.013})
|
|
620
627
|
*/
|
|
621
|
-
export declare function getBaselineZonesByDietrich(data: NmrData1D, options?:
|
|
622
|
-
maxDistanceToJoin?: number;
|
|
623
|
-
minWidth?: number;
|
|
624
|
-
nbZones?: number;
|
|
625
|
-
}): BaselineCorrectionZone[];
|
|
628
|
+
export declare function getBaselineZonesByDietrich(data: NmrData1D, options?: BaselineZoneOptionsDietrich): BaselineCorrectionZone[];
|
|
626
629
|
|
|
627
630
|
export declare function getDatabase(url?: string, options?: {
|
|
628
631
|
/**
|