src/Decision/Risk.php
public static function normalize($risk)
    {
        return (float) max(min($risk, self::MAXIMUM_RISK), self::MINIMUM_RISK);
    }
public static function normalize($risk)
    {
        return (float) max(min($risk, self::MAXIMUM_RISK), self::MINIMUM_RISK);
    }
public static function normalize ( $ risk ) { return ( float ) max ( min ( $ risk , self :: MAXIMUM_RISK ) , self :: MINIMUM_RISK ) ; }
Normalize Risk - make sure that risk will be in bound

@author WN
@param $risk
@return float <0,1>
Normalize Risk - make sure that risk will be in bound