public class ComputeDistance extends CrossFunction implements Serializable
| Constructor and Description |
|---|
ComputeDistance() |
| Modifier and Type | Method and Description |
|---|---|
void |
cross(Record dataPointRecord,
Record clusterCenterRecord,
Collector<Record> out)
Computes the distance of one data point to one cluster center.
|
close, getIterationRuntimeContext, getRuntimeContext, open, setRuntimeContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getRuntimeContext, open, setRuntimeContextpublic void cross(Record dataPointRecord, Record clusterCenterRecord, Collector<Record> out)
cross in interface GenericCrosser<Record,Record,Record>cross in class CrossFunctionCopyright © 2013. All rights reserved.