@param $x
@param $y
@param $nw
@param $ne
@param $sw
@param $se

@return int
549536
protected function interpolate($x, $y, $nw, $ne, $sw, $se)
    {
        list($r0, $g0, $b0) = $this->getRGB($nw);
        list($r1, $g1, $b1) = $this->getRGB($ne);
        list($r2, $g2, $b2) = $this->getRGB($sw);
        list($r3, $g3, $b3) = $this->getRGB($se);

        $cx = 1.0 - $x;
        $cy = 1.0 - $y;

        $m0 = $cx * $r0 + $x * $r1;
        $m1 = $cx * $r2 + $x * $r3;
        $r  = (int) ($cy * $m0 + $y * $m1);

        $m0 = $cx * $g0 + $x * $g1;
        $m1 = $cx * $g2 + $x * $g3;
        $g  = (int) ($cy * $m0 + $y * $m1);

        $m0 = $cx * $b0 + $x * $b1;
        $m1 = $cx * $b2 + $x * $b3;
        $b  = (int) ($cy * $m0 + $y * $m1);

        return ($r << 16) | ($g << 8) | $b;
    }
1312367
public function getLength($X1, $Y1, $X2, $Y2)
    {
        return sqrt(
            pow(max($X1, $X2) - min($X1, $X2), 2) + pow(max($Y1, $Y2) - min($Y1, $Y2), 2)
        );
    }
996230
public function getDistance($X1, $Y1, $X2, $Y2)
    {
        return sqrt(($X2 - $X1) * ($X2 - $X1) + ($Y2 - $Y1) * ($Y2 - $Y1));
    }
766101
public function skew($x, $y = null)
    {

        return $this->multiply(new self(
            1,
            tan(deg2rad($y)),
            tan(deg2rad($x !== null ? $x : $y)),
            1,
            0,
            0
        ));
    }
1082521
function yy_r173()
    {
        static $lops = array('eq'          => array('op' => ' == ', 'pre' => null),
                             'ne'          => array('op' => ' != ', 'pre' => null),
                             'neq'         => array('op' => ' != ', 'pre' => null),
                             'gt'          => array('op' => ' > ', 'pre' => null),
                             'ge'          => array('op' => ' >= ', 'pre' => null),
                             'gte'         => array('op' => ' >= ', 'pre' => null),
                             'lt'          => array('op' => ' < ', 'pre' => null),
                             'le'          => array('op' => ' <= ', 'pre' => null),
                             'lte'         => array('op' => ' <= ', 'pre' => null),
                             'mod'         => array('op' => ' % ', 'pre' => null),
                             'and'         => array('op' => ' && ', 'pre' => null),
                             'or'          => array('op' => ' || ', 'pre' => null),
                             'xor'         => array('op' => ' xor ', 'pre' => null),
                             'isdivby'     => array('op' => ' % ', 'pre' => '!('),
                             'isnotdivby'  => array('op' => ' % ', 'pre' => '('),
                             'isevenby'    => array('op' => ' / ', 'pre' => '!(1 & '),
                             'isnotevenby' => array('op' => ' / ', 'pre' => '(1 & '),
                             'isoddby'     => array('op' => ' / ', 'pre' => '(1 & '),
                             'isnotoddby'  => array('op' => ' / ', 'pre' => '!(1 & '),);
        $op = strtolower(preg_replace('/\s*/', '', $this->yystack[ $this->yyidx + 0 ]->minor));
        $this->_retvalue = $lops[ $op ];
    }
1278149
private function walkEdge(string $s, int $i, int $start, int $end): int
    {
        $text = $this->getS();
        for ($k = $start; $k <= $end && $i < strlen($s); $k++, $i++) {
            if ($text{$k} !== $s{$i}) {
                return -1;
            }
        }
        if (strlen($s) === $i) {
            return $k > $end ? 2 : 1;
        }
        return 0;
    }
241394
public function setSize($x, $y, $w, $h)
    {
        $this->x = $x;
        $this->y = $y;
        $this->w = $w;
        $this->h = $h;

        return $this;
    }
1326290
public int get32u8( int x , int y ) {
		int i = startIndex + y*stride+x;
		return ((((GrayU8)bands[0]).data[i]&0xFF) << 24) |
				((((GrayU8)bands[1]).data[i]&0xFF) << 16) |
				((((GrayU8)bands[2]).data[i]&0xFF) << 8) |
				(((GrayU8)bands[3]).data[i]&0xFF);
	}
1141464
public function gexp(int $n):int{

		if($n < 0){
			$n += 255;
		}
		elseif($n >= 256){
			$n -= 255;
		}

		return Polynomial::table[$n][0];
	}
1112816
public static function getInstance($x, $y)
    {
        if($x === 0 && $y === 0)
        {
            if(self::$zero === null)
            {
                self::$zero = new self(0, 0);
            }
            
            return self::$zero;
        }

        return new self($x, $y);
    }
1294467
protected static double luby(double y, int x) {
    int intX = x;
    int size = 1;
    int seq = 0;
    while (size < intX + 1) {
      seq++;
      size = 2 * size + 1;
    }
    while (size - 1 != intX) {
      size = (size - 1) >> 1;
      seq--;
      intX = intX % size;
    }
    return Math.pow(y, seq);
  }
385898
public double initFNum(double w, double o, double y) {
    switch (distribution) {
      case AUTO:
      case gaussian:
      case bernoulli:
      case quasibinomial:
      case multinomial:
        return w*(y-o);
      case poisson:
        return w*y;
      case gamma:
        return w*y*linkInv(-o);
      case tweedie:
        return w*y*exp(o*(1- tweediePower));
      case modified_huber:
        return y==1 ? w : 0;
      default:
        throw H2O.unimpl();
    }
  }
109533
public function Equals( $x, $y )
	{
		$nav1 = $x instanceof XPathNavigator
			? $x
			: null;
		$nav2 = $y instanceof XPathNavigator
			? $x
			: null;
		/**
		 * @var XPathNavigator $nav1
		 * @var XPathNavigator $nav2
		 */
		if ( ! is_null( $nav1 ) && ! is_null( $nav2 ) )
			return $nav1->IsSamePosition( $nav2 );
		else
			throw XPath2Exception::withErrorCodeAndParams( "XPTY0004", Resources::XPTY0004,
				array(
					"$xs:anyAtomicType",
					"node()* in function op:union,op:intersect and op:except"
				)
			);
	}
838605
public function isValidBound($x, $y) {
        list($r, $g, $b) = $this->shapeImage->getRGB($x, $y);
        return $r < 240 || $g < 240 || $b < 240;
    }
650927
private function bnNumBits(\GMP $x): int
    {
        $zero = \gmp_init(0, 10);
        if (Math::equals($x, $zero)) {
            return 0;
        }
        $log2 = 0;
        while (false === Math::equals($x, $zero)) {
            $x = Math::rightShift($x, 1);
            ++$log2;
        }

        return $log2;
    }
1355715
def enbw(wnd):
  
  return sum(el ** 2 for el in wnd) / sum(wnd) ** 2 * len(wnd)
800637
public function setY($y)
    {
        try {
            $this->y = (float)$y;

            unset($y);
            return 0;
        } catch (\Exception $e) {
            throw $e;
        }
    }