public function setPrecomputeBeta($beta)
    {
        if (!is_int($beta) || $beta < 1 || $beta > 10) {
            throw new Exception('Invalid beta specified. An integer between 1 and 10 is required.');
        }

        $this->precomputeBeta = $beta;
    }