nmr-processing 11.8.1 → 11.10.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.
@@ -151,6 +151,34 @@ export declare interface BaselineCorrectionZone {
151
151
  id: string;
152
152
  }
153
153
 
154
+ declare interface BaselineZoneOptions {
155
+ /**
156
+ * The width factor to use to enlarge the peaks width
157
+ * @default 20
158
+ */
159
+ widthFactor?: number;
160
+ /**
161
+ * The number of zones to find
162
+ * @default 5
163
+ */
164
+ nbZones?: number;
165
+ /**
166
+ * The space (in percent) from the side that should not be considered
167
+ * @default 0.05
168
+ */
169
+ padding?: number;
170
+ /**
171
+ * The tolerance (in percent) to select the zone in which the more points are present
172
+ * @default 0.05
173
+ */
174
+ tolerance?: number;
175
+ /**
176
+ * The minimum width of the zones as a radio to the width
177
+ * @default 0.02
178
+ */
179
+ minWidth?: number;
180
+ }
181
+
154
182
  declare interface BasePeak {
155
183
  id: string;
156
184
  }
@@ -522,6 +550,14 @@ export declare interface GetAutoAssignmentInput {
522
550
  molecule: Molecule;
523
551
  }
524
552
 
553
+ /**
554
+ * Need to find where is the baseline (so in fact only noise)
555
+ * The approach is to find the peaks using GSD and then to enlarge the peaks
556
+ * to determine the zones where the baseline is not present
557
+ * @param data
558
+ */
559
+ export declare function getBaselineZones(data: NmrData1D, options?: BaselineZoneOptions): BaselineCorrectionZone[];
560
+
525
561
  export declare function getDatabase(url?: string, options?: {
526
562
  /**
527
563
  * @default 'tsv'