-1
我收到以下錯誤:問題與操作數類型
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;