Phpml\Clustering\KMeans\Point::toArray PHP Method

toArray() public method

public toArray ( ) : array
return array
    public function toArray()
    {
        return $this->coordinates;
    }

Usage Example

Example #1
0
 /**
  * @return array
  */
 public function toArray()
 {
     return array('centroid' => parent::toArray(), 'points' => $this->getPoints());
 }