Example #1
0
File: Lab2.php Project: 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);
 }
Example #2
0
File: Lab1.php Project: pyvil/empi
 /**
  * Get expected value lifetime from data-in
  * @return float
  */
 public function getExpectedValue()
 {
     return Math::calculateExpectedValue($this->inputData, $this->distribution);
 }