protected function reduce(array $data): array
    {
        $m1 = new Matrix($data);
        $m2 = new Matrix($this->eigVectors);

        return $m1->multiply($m2->transpose())->toArray();
    }
protected function reduce(array $data): array
    {
        $m1 = new Matrix($data);
        $m2 = new Matrix($this->eigVectors);

        return $m1->multiply($m2->transpose())->toArray();
    }
protected function reduce ( array $ data ) : array { $ m1 = new Matrix ( $ data ) ; $ m2 = new Matrix ( $ this -> eigVectors ) ; return $ m1 -> multiply ( $ m2 -> transpose ( ) ) -> toArray ( ) ; }
Returns the reduced data
Returns the reduced data