You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ml-gsd.d.ts
+30-28Lines changed: 30 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
-
importtype{DataXY}from'cheminfo-types';
2
-
export{DataXY}from'cheminfo-types';
1
+
exportinterfaceXYNumberArray{
2
+
x: Array<number>|Float64Array;
3
+
y: Array<number>|Float64Array;
4
+
}
3
5
4
6
exportinterfaceGSDOptions{
5
7
/**
@@ -8,17 +10,17 @@ export interface GSDOptions {
8
10
*/
9
11
noiseLevel?: number;
10
12
/**
11
-
* Threshold to determine if a given GSDPeak should be considered as a noise, bases on its relative height compared to the highest GSDPeak.
13
+
* Threshold to determine if a given peak should be considered as a noise, bases on its relative height compared to the highest peak.
12
14
* @default 0.01
13
15
*/
14
16
minMaxRatio?: number;
15
17
/**
16
-
* If broadRatio is higher than 0, then all the GSDPeaks which second derivative smaller than broadRatio * maxAbsSecondDerivative will be marked with the soft mask equal to true.
18
+
* If broadRatio is higher than 0, then all the peaks which second derivative smaller than broadRatio * maxAbsSecondDerivative will be marked with the soft mask equal to true.
17
19
* @default 0.00025
18
20
*/
19
21
broadRatio?: number;
20
22
/**
21
-
* Select the GSDPeak intensities from a smoothed version of the independent variables.
23
+
* Select the peak intensities from a smoothed version of the independent variables.
22
24
* @default true
23
25
*/
24
26
smoothY?: boolean;
@@ -41,7 +43,7 @@ export interface GSDOptions {
41
43
* @default -1
42
44
*/
43
45
/**
44
-
* GSDPeaks are local maximum(true) or minimum(false)
46
+
* Peaks are local maximum(true) or minimum(false)
45
47
* @default true
46
48
*/
47
49
maxCriteria?: boolean;
@@ -58,31 +60,31 @@ export interface GSDOptions {
58
60
}
59
61
60
62
exportinterfaceGSDPeak{
61
-
index: number;
63
+
ndex: number;
62
64
x: number;
63
65
y: number;
64
66
width: number;
65
67
left?: {
66
-
x?:number,
67
-
index?:number,
68
+
x?:number;
69
+
index?:number;
68
70
};
69
71
right?: {
70
-
x?:number,
71
-
index?:number,
72
+
x?:number;
73
+
index?:number;
72
74
};
73
75
base?: number;
74
76
soft?: boolean;
75
77
kind?: string;
76
78
}
77
79
78
-
exportinterfaceOptimizeGSDPeaksOptions{
80
+
exportinterfaceOptimizePeaksOptions{
79
81
/**
80
-
* factor to determine the width at the moment to group the GSDPeaks in signals in 'GSD.optimizeGSDPeaks' function.
82
+
* factor to determine the width at the moment to group the peaks in signals in 'GSD.optimizePeaks' function.
0 commit comments