File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed
Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -34,19 +34,29 @@ interface GsdOptions {
3434 * @default {kind:'gaussian'}
3535 */
3636 shape ?: { kind : string } ;
37- // /**
38- // * Threshold to determine if some peak is candidate to clustering into range.
39- // * @default 0.25
40- // */
41- // broadWidth: number;
4237 /**
4338 * Options for savitz Golay
4439 */
4540 sgOptions ?: { windowSize : number ; polynomial : number } ;
4641 /**
4742 * filter based on intensity of the first derive.
48- * @default -1;
43+ * @default -1
4944 */
45+ /**
46+ * Peaks are local maximum(true) or minimum(false)
47+ * @default true
48+ */
49+ maxCriteria ?: boolean ;
50+ /**
51+ * Filters based on the amplitude of the first derivative
52+ * @default -1
53+ */
54+ derivativeThreshold : number ;
55+ /**
56+ * Factor to multiply the calculated height (usually 2)
57+ * @default 0
58+ */
59+ heightFactor : number ;
5060}
5161
5262export interface Peak {
@@ -92,7 +102,7 @@ export interface OptimizationOptions {
92102 * Time limit to stop the optimization in seconds.
93103 * @default 10
94104 */
95- timeout ?: number
105+ timeout ?: number ;
96106}
97107
98108export interface OptimizedPeak {
Original file line number Diff line number Diff line change 11{
22 "name" : " ml-gsd" ,
3- "version" : " 6.8 .0" ,
3+ "version" : " 6.7 .0" ,
44 "description" : " Global Spectra Deconvolution" ,
55 "main" : " lib/index.js" ,
66 "module" : " src/index.js" ,
77 "types" : " ml-gsd.d.ts" ,
88 "files" : [
9+ " ml-gsd.d.ts" ,
910 " lib" ,
1011 " src"
1112 ],
You can’t perform that action at this time.
0 commit comments