@ Override public double [ ] getVotesForInstance ( Instance inst ) { double [ ] votes = { 0.5 , 0.5 } ; if ( ! referenceWindow ) { votes [ 1 ] = this . getAnomalyScore ( inst ) + 0.5 - this . anomalyThreshold ; votes [ 0 ] = 1.0 - votes [ 1 ] ; } return votes ; }
Combine the anomaly scores from each HSTree in the forest and convert into a vote score .