void writeResult ( PrintStream out , DBIDs ids , OutlierResult result , ScalingFunction scaling , String label ) { if ( scaling instanceof OutlierScaling ) { ( ( OutlierScaling ) scaling ) . prepare ( result ) ; } out . append ( label ) ; DoubleRelation scores = result . getScores ( ) ; for ( DBIDIter iter = ids . iter ( ) ; iter . valid ( ) ; iter . advance ( ) ) { double value = scores . doubleValue ( iter ) ; value = scaling != null ? scaling . getScaled ( value ) : value ; out . append ( ' ' ) . append ( Double . toString ( value ) ) ; } out . append ( FormatUtil . NEWLINE ) ; }
Write a single output line .