server/src/main/resources/eclairjs/mllib/clustering/KMeansModel.js
function (clusterCenters) {
        var jvmObject;
        if (clusterCenters instanceof org.apache.spark.mllib.clustering.KMeansModel) {
            jvmObject = clusterCenters;
        } else {
            jvmObject = new org.apache.spark.mllib.clustering.KMeansModel(clusterCenters);
        }

        this.logger = Logger.getLogger("KMeansModel_js");
        JavaWrapper.call(this, jvmObject);

    }
function (clusterCenters) {
        var jvmObject;
        if (clusterCenters instanceof org.apache.spark.mllib.clustering.KMeansModel) {
            jvmObject = clusterCenters;
        } else {
            jvmObject = new org.apache.spark.mllib.clustering.KMeansModel(clusterCenters);
        }

        this.logger = Logger.getLogger("KMeansModel_js");
        JavaWrapper.call(this, jvmObject);

    }
function ( clusterCenters ) { var jvmObject ; if ( clusterCenters instanceof org . apache . spark . mllib . clustering . KMeansModel ) { jvmObject = clusterCenters ; } else { jvmObject = new org . apache . spark . mllib . clustering . KMeansModel ( clusterCenters ) ; } this . logger = Logger . getLogger ( "KMeansModel_js" ) ; JavaWrapper . call ( this , jvmObject ) ; }
A clustering model for K-means. Each point belongs to the cluster with the closest center.
@classdesc
 
A Java-friendly constructor that takes an Iterable of Vectors.
@param {@module:eclairjs/mllib/linalg.Vector[]} clusterCenters
@returns {??}
@memberof module:eclairjs/mllib/clustering
@class
A clustering model for K - means . Each point belongs to the cluster with the closest center .