__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
declare(strict_types=1);
namespace Phpml\Math;
use Phpml\Exception\InvalidArgumentException;
class Comparison
{
/**
* @param mixed $a
* @param mixed $b
*
* @throws InvalidArgumentException
*/
public static function compare($a, $b, string $operator): bool
{
switch ($operator) {
case '>':
return $a > $b;
case '>=':
return $a >= $b;
case '=':
case '==':
return $a == $b;
case '===':
return $a === $b;
case '<=':
return $a <= $b;
case '<':
return $a < $b;
case '!=':
case '<>':
return $a != $b;
case '!==':
return $a !== $b;
default:
throw new InvalidArgumentException(sprintf('Invalid operator "%s" provided', $operator));
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Distance | Folder | 0777 |
|
|
| Kernel | Folder | 0777 |
|
|
| LinearAlgebra | Folder | 0777 |
|
|
| Statistic | Folder | 0777 |
|
|
| Comparison.php | File | 971 B | 0777 |
|
| Distance.php | File | 136 B | 0777 |
|
| Kernel.php | File | 222 B | 0777 |
|
| Matrix.php | File | 7.82 KB | 0777 |
|
| Product.php | File | 421 B | 0777 |
|
| Set.php | File | 3.68 KB | 0777 |
|