예제 #1
0
 public static function TestBedError($x, $y, $testbed, $ed, $pi)
 {
     $instance = new self();
     $coord = $instance->getCoordinatesForTestbed($x, $y, $testbed);
     $instance->id = Data::getIdForTestbed($x, $y, $testbed, $pi);
     $instance->x = $coord[0];
     $instance->y = $coord[1];
     $instance->errorDistance = round($ed, 2);
     return $instance;
 }
예제 #2
0
 public function __construct($x, $y, $testbed, $v, $pi)
 {
     $this->name = Data::getIdForTestbed($x, $y, $testbed, $pi);
     $this->value = round($v, 2);
 }
예제 #3
0
 public function __construct($x, $y, $testbed, $v1, $v2, $pi)
 {
     $this->name = Data::getIdForTestbed($x, $y, $testbed, $pi);
     $this->sol1 = round($v1, 2);
     $this->sol2 = round($v2, 2);
 }