File tree Expand file tree Collapse file tree 17 files changed +174
-48
lines changed
3-eventDetection/simplePeakDetector Expand file tree Collapse file tree 17 files changed +174
-48
lines changed Original file line number Diff line number Diff line change @@ -50,5 +50,5 @@ module.exports = function(RED) {
50
50
global . Metrics . flops += 16 ;
51
51
}
52
52
53
- RED . nodes . registerType ( "simpleSimplePeakDetector " , SimplePeakDetectorNode ) ;
53
+ RED . nodes . registerType ( "simplePeakDetector " , SimplePeakDetectorNode ) ;
54
54
}
Load Diff This file was deleted.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " node-red-contrib-slidingWindow" ,
3
+ "version" : " 0.0.1" ,
4
+ "description" : " Calculates the slidingWindow of a set of values" ,
5
+ "dependencies" : {},
6
+ "keywords" : [
7
+ " node-red"
8
+ ],
9
+ "node-red" : {
10
+ "nodes" : {
11
+ "slidingWindow" : " slidingWindow.js"
12
+ }
13
+ }
14
+ }
Original file line number Diff line number Diff line change 1
1
< script type ="text/javascript ">
2
- RED . nodes . registerType ( 'overlappingWindow ' , {
2
+ RED . nodes . registerType ( 'slidingWindow ' , {
3
3
category : 'segmentation' ,
4
4
color : '#AAAA66' ,
5
5
defaults : {
9
9
outputs :1 ,
10
10
icon : "segmentation.png" ,
11
11
label : function ( ) {
12
- return this . name || "overlappingWindow " ;
12
+ return this . name || "slidingWindow " ;
13
13
}
14
14
} ) ;
15
15
</ script >
16
16
17
- < script type ="text/x-red " data-template-name ="overlappingWindow ">
17
+ < script type ="text/x-red " data-template-name ="slidingWindow ">
18
18
< div class = "form-row" >
19
19
< label for = "node-input-name" > < i class = "icon-tag" > </ i > Name</ label >
20
20
< input type = "text" id = "node-input-name" placeholder = "Name" >
21
21
</ div >
22
22
</ script >
23
23
24
- < script type ="text/x-red " data-help-name ="overlappingWindow ">
24
+ < script type ="text/x-red " data-help-name ="slidingWindow ">
25
25
< p > Generates segments of size windowSize at every iterationSize</ p >
26
26
</ script >
Original file line number Diff line number Diff line change 1
1
module . exports = function ( RED ) {
2
2
3
- function OverlappingWindow ( config ) {
3
+ function SlidingWindow ( config ) {
4
4
RED . nodes . createNode ( this , config ) ;
5
5
var node = this ;
6
6
node . on ( 'input' , function ( msg ) {
@@ -9,5 +9,5 @@ module.exports = function(RED) {
9
9
} ) ;
10
10
}
11
11
12
- RED . nodes . registerType ( "overlappingWindow" , OverlappingWindow ) ;
12
+ RED . nodes . registerType ( "slidingWindow" , SlidingWindow ) ;
13
13
}
Original file line number Diff line number Diff line change 1
1
< script type ="text/javascript ">
2
- RED . nodes . registerType ( 'squaredMagnitudeSum ' , {
2
+ RED . nodes . registerType ( 'correlation ' , {
3
3
category : 'featureExtraction' ,
4
4
color : '#E2D96E' ,
5
5
defaults : {
10
10
outputs :1 ,
11
11
icon : "function.png" ,
12
12
label : function ( ) {
13
- return this . name || "squaredMagnitudeSum " ;
13
+ return this . name || "correlation " ;
14
14
}
15
15
} ) ;
16
16
</ script >
17
17
18
- < script type ="text/x-red " data-template-name ="squaredMagnitudeSum ">
18
+ < script type ="text/x-red " data-template-name ="correlation ">
19
19
< div class = "form-row" >
20
20
< label for = "node-input-name" > < i class = "icon-tag" > </ i > Name</ label >
21
21
< input type = "text" id = "node-input-name" placeholder = "Name" >
27
27
</ div >
28
28
</ script >
29
29
30
- < script type ="text/x-red " data-help-name ="squaredMagnitudeSum ">
31
- < p > Calculates the squaredMagnitudeSum of the values in the message payload</ p >
30
+ < script type ="text/x-red " data-help-name ="correlation ">
31
+ < p > Calculates the correlation of the values in the message payload</ p >
32
32
</ script >
Original file line number Diff line number Diff line change 1
1
2
2
module . exports = function ( RED ) {
3
3
4
- function SquaredMagnitudeSumNode ( config ) {
4
+ function CorrelationNode ( config ) {
5
5
6
6
RED . nodes . createNode ( this , config ) ;
7
7
var node = this ;
@@ -12,5 +12,5 @@ module.exports = function(RED) {
12
12
}
13
13
14
14
15
- RED . nodes . registerType ( "squaredMagnitudeSum" , SquaredMagnitudeSumNode ) ;
15
+ RED . nodes . registerType ( "correlation" , CorrelationNode ) ;
16
16
}
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " node-red-contrib-correlation" ,
3
+ "version" : " 0.0.1" ,
4
+ "description" : " Calculates the correlation" ,
5
+ "dependencies" : {
6
+ },
7
+ "keywords" : [
8
+ " node-red"
9
+ ],
10
+ "node-red" : {
11
+ "nodes" : {
12
+ "correlation" : " correlation.js"
13
+ }
14
+ }
15
+ }
Original file line number Diff line number Diff line change
1
+ < script type ="text/javascript ">
2
+ RED . nodes . registerType ( 'energy' , {
3
+ category : 'featureExtraction' ,
4
+ color : '#E2D96E' ,
5
+ defaults : {
6
+ name : { value :"" } ,
7
+ featureIdx : { value :"" , required :false , validate :RED . validators . number ( ) }
8
+ } ,
9
+ inputs :1 ,
10
+ outputs :1 ,
11
+ icon : "function.png" ,
12
+ label : function ( ) {
13
+ return this . name || "energy" ;
14
+ }
15
+ } ) ;
16
+ </ script >
17
+
18
+ < script type ="text/x-red " data-template-name ="energy ">
19
+ < div class = "form-row" >
20
+ < label for = "node-input-name" > < i class = "icon-tag" > </ i > Name</ label >
21
+ < input type = "text" id = "node-input-name" placeholder = "Name" >
22
+ </ div >
23
+
24
+ < div class = "form-row" >
25
+ < label for = "node-input-featureIdx" > < i class = "icon-tag" > </ i > featureIdx</ label >
26
+ < input type = "text" id = "node-input-featureIdx" placeholder = "featureIdx" >
27
+ </ div >
28
+ </ script >
29
+
30
+ < script type ="text/x-red " data-help-name ="energy ">
31
+ < p > Calculates the energy of the values in the message payload</ p >
32
+ </ script >
You can’t perform that action at this time.
0 commit comments