Skip to content

Commit

Permalink
Merge branch 'master' into explicit-network-thresholds
Browse files Browse the repository at this point in the history
  • Loading branch information
d-callan committed Jan 16, 2024
2 parents 7eb624f + ee958e1 commit f300f4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,10 @@ protected void writeResults(OutputStream out, Map<String, InputStream> dataStrea
// each node.
stats.getStatistics().forEach((correlationRow) -> {

// Skip rows that have no correlation coefficient or a correlation coef that is too small. Filtering here prevents us
// Skip rows that have no correlation coefficient, a NaN correlation coef, or a correlation coef that is too small. Filtering here prevents us
// from showing nodes with no links.
if (correlationRow.getCorrelationCoef() == null) return;
if (Float.isNaN(Float.parseFloat(correlationRow.getCorrelationCoef()))) return;
if (Math.abs(Float.parseFloat(correlationRow.getCorrelationCoef())) < correlationCoefThreshold.floatValue()) return;
if (correlationRow.getPValue() != null) {
if (Float.parseFloat(correlationRow.getPValue()) > pValueThreshold.floatValue()) return;
Expand Down

0 comments on commit f300f4c

Please sign in to comment.