Help debugging HTM.java for anomaly detection

No

Please see the NAB documentation as to how scores are calculated:

It’s straightforward to run a data file (or multiple) outside of NAB and output a CSV with the (raw) anomaly scores for each record, and then compare that to the CSV that results from running NAB.