class Hamming implements CentroidFactoryInterface
This class computes the centroid of the hamming distance between two stringsthat are the binary representations of two integers (the strings are supposedto only contain the characters 1 and 0).
Methods
mixed |
getCentroid(array $docs, array $choose = array())
Parse the provided docs and create a doc that given a metric of distance is the centroid of the provided docs. |
Details
at line 20
public mixed
getCentroid(array $docs, array $choose = array())
Parse the provided docs and create a doc that given a metric of distance is the centroid of the provided docs.
The second array is to choose some of the provided docs to
compute the centroid.