Exemplo n.º 1
0
 public function setUp()
 {
     $independent = new MatrixBase(2, 10, 50);
     $independent->setPoint(1, 1, 8);
     $independent->setPoint(1, 2, 7);
     $independent->setPoint(1, 3, 4);
     $independent->setPoint(1, 4, 9);
     $independent->setPoint(1, 5, 3);
     $independent->setPoint(1, 6, 12);
     $independent->setPoint(1, 7, 23);
     $independent->setPoint(1, 8, 4);
     $independent->setPoint(1, 9, 6);
     $independent->setPoint(1, 10, 15);
     $independent->setPoint(2, 1, 4);
     $independent->setPoint(2, 2, 17);
     $independent->setPoint(2, 3, 14);
     $independent->setPoint(2, 4, 6);
     $independent->setPoint(2, 5, 23);
     $independent->setPoint(2, 6, 5);
     $independent->setPoint(2, 7, 9);
     $independent->setPoint(2, 8, 12);
     $independent->setPoint(2, 9, 13);
     $independent->setPoint(2, 10, 4);
     $dependent = new MatrixBase(1, 10, 50);
     $dependent->setPoint(1, 1, 8);
     $dependent->setPoint(1, 2, 9);
     $dependent->setPoint(1, 3, 23);
     $dependent->setPoint(1, 4, 34);
     $dependent->setPoint(1, 5, 16);
     $dependent->setPoint(1, 6, 15);
     $dependent->setPoint(1, 7, 17);
     $dependent->setPoint(1, 8, 19);
     $dependent->setPoint(1, 9, 29);
     $dependent->setPoint(1, 10, 31);
     $this->independent1 = $independent;
     $this->dependent1 = $dependent;
     $independent = new MatrixBase(2, 8, 50);
     $independent->setPoint(1, 1, 38);
     $independent->setPoint(1, 2, 41);
     $independent->setPoint(1, 3, 34);
     $independent->setPoint(1, 4, 35);
     $independent->setPoint(1, 5, 31);
     $independent->setPoint(1, 6, 34);
     $independent->setPoint(1, 7, 29);
     $independent->setPoint(1, 8, 32);
     $independent->setPoint(2, 1, 47.5);
     $independent->setPoint(2, 2, 21.3);
     $independent->setPoint(2, 3, 36.5);
     $independent->setPoint(2, 4, 18.0);
     $independent->setPoint(2, 5, 29.5);
     $independent->setPoint(2, 6, 14.2);
     $independent->setPoint(2, 7, 21.0);
     $independent->setPoint(2, 8, 10.0);
     $dependent = new MatrixBase(1, 8, 50);
     $dependent->setPoint(1, 1, 66.0);
     $dependent->setpoint(1, 2, 43.0);
     $dependent->setPoint(1, 3, 36.0);
     $dependent->setPoint(1, 4, 23.0);
     $dependent->setPoint(1, 5, 22.0);
     $dependent->setPoint(1, 6, 14.0);
     $dependent->setPoint(1, 7, 12.0);
     $dependent->setPoint(1, 8, 7.6);
     $this->independent2 = $independent;
     $this->dependent2 = $dependent;
 }
Exemplo n.º 2
0
 /**
  * @return MatrixBase
  */
 public function matrizY()
 {
     $y = new MatrixBase(1, 8, 10);
     $y->setPoint(1, 1, 66.0);
     $y->setpoint(1, 2, 43.0);
     $y->setPoint(1, 3, 36.0);
     $y->setPoint(1, 4, 23.0);
     $y->setPoint(1, 5, 22.0);
     $y->setPoint(1, 6, 14.0);
     $y->setPoint(1, 7, 12.0);
     $y->setPoint(1, 8, 7.6);
     return $y;
 }