nmr-processing 12.10.0 → 12.11.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.
@@ -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
  }
@@ -294,6 +301,7 @@ export declare interface DatabaseNMREntry {
294
301
  names?: string[];
295
302
  meta?: Record<string, string>;
296
303
  ranges: NMRRange[];
304
+ signals?: NMRSignal1D[];
297
305
  }
298
306
 
299
307
  export declare type DataBaseStructure = DataBaseLevelStructure[];
@@ -618,11 +626,7 @@ export declare function getBaselineZones(data: NmrData1D, options?: BaselineZone
618
626
  * Generate baseline zones by Dietrich method, it uses an iterative thresholding to discard signals zones over a power spectrum.
619
627
  * the implementation is based on the publication of Cobas et al (DOI: {@link https://doi.org/10.1016/j.jmr.2006.07.013})
620
628
  */
621
- export declare function getBaselineZonesByDietrich(data: NmrData1D, options?: {
622
- maxDistanceToJoin?: number;
623
- minWidth?: number;
624
- nbZones?: number;
625
- }): BaselineCorrectionZone[];
629
+ export declare function getBaselineZonesByDietrich(data: NmrData1D, options?: BaselineZoneOptionsDietrich): BaselineCorrectionZone[];
626
630
 
627
631
  export declare function getDatabase(url?: string, options?: {
628
632
  /**