Skip to content

Commit

Permalink
Change signature of AddNewItemsInFullTable
Browse files Browse the repository at this point in the history
  • Loading branch information
BUYT-1 committed Apr 21, 2024
1 parent 179b7f7 commit 3de38cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/algorithms/cfd/model/cfd_relation_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void CFDRelationData::AddNewItemsInFullTable(ItemDictionary& item_dictionary,
std::vector<std::string> const& string_row,
std::vector<int>& int_row,
std::vector<Transaction>& data_rows,
int& unique_elems_number, unsigned num_columns) {
int& unique_elems_number, size_t num_columns) {
int it;
for (size_t i = 0; i < num_columns; i++) {
auto ptr = item_dictionary.find(std::make_pair(i, string_row[i]));
Expand All @@ -49,7 +49,7 @@ std::unique_ptr<CFDRelationData> CFDRelationData::CreateFrom(model::IDatasetStre
return CFDRelationData::CreateFrom(parser, c_sample, r_sample);
}

unsigned const num_columns = std::min(parser.GetNumberOfColumns(), columns_number);
size_t const num_columns = std::min(parser.GetNumberOfColumns(), columns_number);
std::vector<std::string> column_names;
column_names.reserve(num_columns);
for (AttributeIndex i = 0; static_cast<size_t>(i) < num_columns; ++i) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/algorithms/cfd/model/cfd_relation_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CFDRelationData : public AbstractRelationData<CFDColumnData> {
static void AddNewItemsInFullTable(ItemDictionary &, ColumnesValuesDict &,
std::vector<ItemInfo> &, std::vector<std::string> const &,
std::vector<int> &, std::vector<Transaction> &, int &,
unsigned);
size_t);

static void AddNewItemsInPartialTable(ItemDictionary &, ColumnesValuesDict &,
std::vector<ItemInfo> &, std::vector<std::string> const &,
Expand Down

0 comments on commit 3de38cd

Please sign in to comment.