public function normalize(float $score, int $alpha=15)
    {
        $normalizedScore = $score/sqrt(($score^2) + $alpha);
        if ($normalizedScore < -1.0) {
            return -1.0;
        } elseif ($normalizedScore > 1.0) {
            return 1.0;
        }
        return $normalizedScore;
    }
public function normalize(float $score, int $alpha=15)
    {
        $normalizedScore = $score/sqrt(($score^2) + $alpha);
        if ($normalizedScore < -1.0) {
            return -1.0;
        } elseif ($normalizedScore > 1.0) {
            return 1.0;
        }
        return $normalizedScore;
    }
public function normalize ( float $ score , int $ alpha = 15 ) { $ normalizedScore = $ score / sqrt ( ( $ score ^ 2 ) + $ alpha ) ; if ( $ normalizedScore < - 1.0 ) { return - 1.0 ; } elseif ( $ normalizedScore > 1.0 ) { return 1.0 ; } return $ normalizedScore ; }
Normalize the score to be between -1 and 1 using an alpha that
approximates the max expected value
@param float $score
@param int $alpha
Normalize the score to be between - 1 and 1 using an alpha that approximates the max expected value