예제 #1
0
파일: Lab2.php 프로젝트: pyvil/empi
 /**
  * Get dispersion from in-data and distribution of each item from in-data array
  * @return int
  */
 public function getDispersion()
 {
     $data = [];
     foreach ($this->inputData as $item) {
         $data[] = $item[$this->attr];
     }
     return Math::calculateDispersion($data, $this->distribution);
 }
예제 #2
0
파일: Lab1.php 프로젝트: pyvil/empi
 /**
  * Get dispersion from in-data and distribution of each item from in-data array
  * @return int
  */
 public function getDispersion()
 {
     return Math::calculateDispersion($this->inputData, $this->distribution);
 }