node-red-contrib-welch-test

0.0.3 • Public • Published

node-red-contrib-welch-test

node-red-contrib-welch-test performs Welch's test (https://en.wikipedia.org/wiki/Welch's_t-test) on two incoming samples (msg.positive and msg.negative) or (msg.pos and msg.neg).

resulting object contains: t - T-value u - U-value p - P-value pos_L - length of "positive" sample neg_L - length of "negative" sample pos_avg - mean of "positive" sample neg_avg - mean of "negative" sample d_avg - difference in means dd_avg - U-value based deviation in difference in means

Example

[{"id":"3d549d9.fa035e2","type":"inject","z":"53f5be08.572d58","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":240,"y":180,"wires":[["61999289.ed056c"]]},{"id":"61999289.ed056c","type":"function","z":"53f5be08.572d58","name":"","func":"msg.positive=[100,22,34,23,156,156,78];\nmsg.negative=[234,543,567,543,234];\nreturn msg;","outputs":1,"noerr":0,"x":390,"y":180,"wires":[["1c780148.91c97f"]]},{"id":"39df5ad7.63890e","type":"debug","z":"53f5be08.572d58","name":"","active":true,"console":"false","complete":"true","x":670,"y":180,"wires":[]},{"id":"1c780148.91c97f","type":"welch-test","z":"53f5be08.572d58","name":"Welch","alpha":90,"x":530,"y":180,"wires":[["39df5ad7.63890e"]]}]

License

MIT License

Readme

Keywords

Package Sidebar

Install

npm i node-red-contrib-welch-test

Weekly Downloads

0

Version

0.0.3

License

MIT

Last publish

Collaborators

  • maxboar