public function priors() : array
    {
        $priors = [];

        if (is_array($this->priors)) {
            $total = logsumexp($this->priors);

            foreach ($this->priors as $class => $probability) {
                $priors[$class] = exp($probability - $total);
            }
        }

        return $priors;
    }
public function priors() : array
    {
        $priors = [];

        if (is_array($this->priors)) {
            $total = logsumexp($this->priors);

            foreach ($this->priors as $class => $probability) {
                $priors[$class] = exp($probability - $total);
            }
        }

        return $priors;
    }
public function priors ( ) : array { $ priors = [ ] ; if ( is_array ( $ this -> priors ) ) { $ total = logsumexp ( $ this -> priors ) ; foreach ( $ this -> priors as $ class => $ probability ) { $ priors [ $ class ] = exp ( $ probability - $ total ) ; } } return $ priors ; }
Return the cluster prior probabilities.

@return float[]
Return the cluster prior probabilities .