Ejemplo n.º 1
0
Archivo: Lab2.php Proyecto: pyvil/empi
 /**
  * Get expected value from data-in
  * Meaning the same like average value
  * @return float
  */
 public function getExpectedValue()
 {
     $data = [];
     foreach ($this->inputData as $item) {
         $data[] = $item[$this->attr];
     }
     return Math::calculateExpectedValue($data, $this->distribution);
 }
Ejemplo n.º 2
0
Archivo: Lab1.php Proyecto: pyvil/empi
 /**
  * Get expected value lifetime from data-in
  * @return float
  */
 public function getExpectedValue()
 {
     return Math::calculateExpectedValue($this->inputData, $this->distribution);
 }