"dMatrix distMatrix(pSize*(pSize-1)/2)" replaced by "distMatrix(pSize) "
This commit is contained in:
parent
bec7d02c50
commit
a290987e89
1 changed files with 1 additions and 1 deletions
|
|
@ -99,7 +99,7 @@ public:
|
||||||
throw std::runtime_error("Apptempt to do sharing with population of size 1");
|
throw std::runtime_error("Apptempt to do sharing with population of size 1");
|
||||||
value().resize(pSize);
|
value().resize(pSize);
|
||||||
std::vector<double> sim(pSize); // to hold the similarities
|
std::vector<double> sim(pSize); // to hold the similarities
|
||||||
dMatrix distMatrix(pSize*(pSize-1)/2); // to hold the distances
|
dMatrix distMatrix(pSize); // to hold the distances
|
||||||
|
|
||||||
// compute the similarities (wrong name for distMatrix, I know)
|
// compute the similarities (wrong name for distMatrix, I know)
|
||||||
distMatrix(0,0)=1;
|
distMatrix(0,0)=1;
|
||||||
|
|
|
||||||
Reference in a new issue