Skip to content

Commit

Permalink
test NaN, infinity in json plus real-time moving average. levenshtein
Browse files Browse the repository at this point in the history
  • Loading branch information
peterprib committed Aug 30, 2020
1 parent c96b839 commit 08b5f83
Show file tree
Hide file tree
Showing 12 changed files with 6,260 additions and 291 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
[Node-Red][1] nodes for various functions:

* Data Analysis - statistical metrics that has real time option
* Test
* Test
* Load Injector
* Monitor Flow
* append
* Spawn Process
* Host Available
* node.js os metrics
* Levenshtein Distance

------------------------------------------------------------

Expand Down Expand Up @@ -175,6 +176,8 @@ Test/example flow in test/generalTest.json

# Version

0.10.1 Real time weighted moving average, for test allow testing of "infinity","-infinity" and "NaN" in JSON.

0.10.0 Many fixes to transform. Array and csv to various forms work. Added test to validate.
Improved test to allow for escape to put special characters into a string.

Expand Down
22 changes: 13 additions & 9 deletions dataAnalysis/dataAnalysis.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
}
});
$("#node-input-action").change(function() {
if(["movingAvgSimple","movingAvgWeighted","movingAvgExponential","realtime"].includes( $(this).val() )) {
if(["movingAvgSimple","movingAvgWeighted","movingAvgExponential","realtime","realtimePredict"].includes( $(this).val() )) {
$(".form-row-http-in-term").show();
} else {
$(".form-row-http-in-term").hide();
Expand All @@ -63,7 +63,7 @@
if(node.term>100) $(this).val(100);
});
}
if(["realtime"].includes( $(this).val() )) {
if(["realtime","realtimePredict"].includes( $(this).val() )) {
node.outputs=3;
$(".form-row-http-in-keyProperty").show();
$(".form-row-http-in-outliersStdDevs").show();
Expand Down Expand Up @@ -152,6 +152,7 @@
<option value="range">Range</option>
<option value="pearsonR">Pearson Product Moment Correlation (PPMC)</option>
<option value="realtime">RealTime Metrics</option>
<option value="realtimePredict">RealTime Metrics + predicts</option>
<option value="standardize">Standardization (Z-score Normalization)</option>
<option value="stdDev">Standard Deviation</option>
<option value="skew">Skewness</option>
Expand Down Expand Up @@ -209,17 +210,20 @@
Data is not persisted so metrics start from zero sample set on node recycle.
</p>
<p>
If real-time stats then a message sent with @stats in topic will send all stored metrics and retained datapoints
to second port.
"@stats reset" will reset all stats and "@stats reset <a data point>" will reset a particular data point.
"@stats set" will set stats with ith msg.payload and "@stats set <a data point>" will set a particular data point with msg.payload.
If real-time stats then a message can send directive instruction in topic:
<dl>
<dt>"@predict <key>"<\dt><dd></dd>Send send predictions to second port for selected key.
<dt>"@stats"<\dt><dd></dd>send all stored metrics and retained datapoints to second port.
<dt>"@stats reset"<\dt><dd>Reset all stats and "@stats reset <key>" will reset a particular data point.</dd>
<dt>"@stats set"<\dt><dd>Set stats with ith msg.payload and "@stats set <a data point>" will set a particular data point with msg.payload.</dd>
</dl>
</p>
<p>
Outliers are not within:
<ul>
<li>1 standard deviation of the mean is about 68%
<li>2 standard deviation of the mean is about 95%
<li>3 standard deviations of the mean is about 99.7%
<li>1 standard deviation of the mean (or median), around 68%
<li>2 standard deviation of the mean (or median), around 95%
<li>3 standard deviations of the mean (or median), around 99.7%
</ul>
</p>
</script>

0 comments on commit 08b5f83

Please sign in to comment.