Commit 7d665a47 authored by ippei ito's avatar ippei ito

Fix warn conversion from 'size_t' to 'int'. add comment for doxygen

parent f7d52c77
...@@ -106,6 +106,8 @@ public: ...@@ -106,6 +106,8 @@ public:
/** /**
* Implementation for the LSH addable indexes after that. * Implementation for the LSH addable indexes after that.
* @param wholeData whole dataset with the input features
* @param additionalData additional dataset with the input features
*/ */
void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData) void addIndex(const Matrix<ElementType>& wholeData, const Matrix<ElementType>& additionalData)
{ {
...@@ -113,7 +115,7 @@ public: ...@@ -113,7 +115,7 @@ public:
for (unsigned int i = 0; i < table_number_; ++i) { for (unsigned int i = 0; i < table_number_; ++i) {
lsh::LshTable<ElementType>& table = tables_[i]; lsh::LshTable<ElementType>& table = tables_[i];
// Add the features to the table with indexed offset // Add the features to the table with indexed offset
table.add(wholeData.rows - additionalData.rows, additionalData); table.add((int)(wholeData.rows - additionalData.rows), additionalData);
} }
dataset_ = wholeData; dataset_ = wholeData;
} }
......
...@@ -192,6 +192,7 @@ public: ...@@ -192,6 +192,7 @@ public:
} }
/** Add a set of features to the table /** Add a set of features to the table
* @param indexed_ofst previous indexed offset
* @param dataset the values to store * @param dataset the values to store
*/ */
void add(int indexed_ofst, Matrix<ElementType> dataset) void add(int indexed_ofst, Matrix<ElementType> dataset)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment