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; }
public function __construct($x, $y, $testbed, $v, $pi) { $this->name = Data::getIdForTestbed($x, $y, $testbed, $pi); $this->value = round($v, 2); }
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); }