public Cluster toCluster ( ) { double [ ] output = new double [ this . sumPoints . length ] ; System . arraycopy ( this . sumPoints , 0 , output , 0 , this . sumPoints . length ) ; for ( int i = 0 ; i < output . length ; i ++ ) { output [ i ] /= this . numPoints ; } return new SphereCluster ( output , getThreshold ( ) , this . numPoints ) ; }
Creates a Cluster of the ClusteringFeature .