Phpml\Clustering\KMeans\Point::toArray PHP 메소드

toArray() 공개 메소드

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

Usage Example

예제 #1
0
파일: Cluster.php 프로젝트: php-ai/php-ml
 /**
  * @return array
  */
 public function toArray()
 {
     return array('centroid' => parent::toArray(), 'points' => $this->getPoints());
 }