Class KMeansUpdate
- java.lang.Object
-
- org.apache.wayang.ml4all.abstraction.api.LogicalOperator
-
- org.apache.wayang.ml4all.abstraction.api.Update<Tuple2<java.lang.Integer,double[]>,Tuple2<java.lang.Integer,Tuple2<java.lang.Integer,double[]>>>
-
- org.apache.wayang.ml4all.algorithms.kmeans.KMeansUpdate
-
- All Implemented Interfaces:
java.io.Serializable
public class KMeansUpdate extends Update<Tuple2<java.lang.Integer,double[]>,Tuple2<java.lang.Integer,Tuple2<java.lang.Integer,double[]>>>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KMeansUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ML4allModel
assign(java.util.List<Tuple2<java.lang.Integer,double[]>> input, ML4allModel model)
Assigns the new value of the global variable to theML4allModel
Tuple2<java.lang.Integer,double[]>
process(Tuple2<java.lang.Integer,Tuple2<java.lang.Integer,double[]>> input, ML4allModel model)
Computes the new value of the global variable-
Methods inherited from class org.apache.wayang.ml4all.abstraction.api.LogicalOperator
finalise, initialise
-
-
-
-
Method Detail
-
process
public Tuple2<java.lang.Integer,double[]> process(Tuple2<java.lang.Integer,Tuple2<java.lang.Integer,double[]>> input, ML4allModel model)
Description copied from class:Update
Computes the new value of the global variable
-
assign
public ML4allModel assign(java.util.List<Tuple2<java.lang.Integer,double[]>> input, ML4allModel model)
Description copied from class:Update
Assigns the new value of the global variable to theML4allModel
-
-