private function frequent(array $samples): array
    {
        return array_values(array_filter($samples, function ($entry) {
            return $this->support($entry) >= $this->support;
        }));
    }
private function frequent(array $samples): array
    {
        return array_values(array_filter($samples, function ($entry) {
            return $this->support($entry) >= $this->support;
        }));
    }
private function frequent ( array $ samples ) : array { return array_values ( array_filter ( $ samples , function ( $ entry ) { return $ this -> support ( $ entry ) >= $ this -> support ; } ) ) ; }
Returns frequent item sets only.

@param mixed[][] $samples

@return mixed[][]
Returns frequent item sets only .