я получаю следующее сообщение об ошибке:Проблема с типами операндов
error: no match for 'operator-' (operand types are 'QVector' and 'const float')
при попытке сделать:
dist.push_back(qPow((clusterMeanCoordinate[t].at(i) - hash_notClustered[t].at(point)), 2) + qPow((clusterMeanCoordinate[w] - hash_notClustered[w].at(point)), 2));
Обратите внимание, что:
QHash<int, QVector<float> > clusterMeanCoordinate;
QHash<int, QVector<float> > hash_notClustered;
QVector<float> dist;