public final class KMeansSpeedModel extends Object implements SpeedModel, Serializable
Constructor and Description |
---|
KMeansSpeedModel(List<ClusterInfo> clusters) |
Modifier and Type | Method and Description |
---|---|
ClusterInfo |
closestCluster(double[] vector) |
ClusterInfo |
getCluster(int id) |
float |
getFractionLoaded() |
void |
setCluster(int clusterID,
ClusterInfo clusterInfo) |
String |
toString() |
public KMeansSpeedModel(List<ClusterInfo> clusters)
public ClusterInfo getCluster(int id)
public void setCluster(int clusterID, ClusterInfo clusterInfo)
public ClusterInfo closestCluster(double[] vector)
public float getFractionLoaded()
getFractionLoaded
in interface SpeedModel
Copyright © 2014–2018. All rights reserved.