| Package | Description |
|---|---|
| org.apache.flink.examples.java.clustering | |
| org.apache.flink.examples.java.clustering.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
KMeans.Centroid
A simple two-dimensional centroid, basically a point with an ID.
|
| Modifier and Type | Method and Description |
|---|---|
KMeans.Point |
KMeans.Point.add(KMeans.Point other) |
KMeans.Point |
KMeans.Point.div(long val) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> |
KMeans.SelectNearestCenter.map(KMeans.Point p) |
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> |
KMeans.CountAppender.map(org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> t) |
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> |
KMeans.CentroidAccumulator.reduce(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val1,
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val2) |
| Modifier and Type | Method and Description |
|---|---|
KMeans.Point |
KMeans.Point.add(KMeans.Point other) |
double |
KMeans.Point.euclideanDistance(KMeans.Point other) |
org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> |
KMeans.SelectNearestCenter.map(KMeans.Point p) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> |
KMeans.CountAppender.map(org.apache.flink.api.java.tuple.Tuple2<Integer,KMeans.Point> t) |
KMeans.Centroid |
KMeans.CentroidAverager.map(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> value) |
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> |
KMeans.CentroidAccumulator.reduce(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val1,
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val2) |
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> |
KMeans.CentroidAccumulator.reduce(org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val1,
org.apache.flink.api.java.tuple.Tuple3<Integer,KMeans.Point,Long> val2) |
| Constructor and Description |
|---|
Centroid(int id,
KMeans.Point p) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.flink.api.java.DataSet<KMeans.Point> |
KMeansData.getDefaultPointDataSet(org.apache.flink.api.java.ExecutionEnvironment env) |
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.