public void printClusterCenter ( Writer stream ) throws IOException { stream . write ( String . valueOf ( this . numPoints ) ) ; for ( int j = 0 ; j < this . sumPoints . length ; j ++ ) { stream . write ( ' ' ) ; stream . write ( String . valueOf ( this . sumPoints [ j ] / this . numPoints ) ) ; } stream . write ( System . getProperty ( "line.separator" ) ) ; }
Writes the cluster center to a given stream .