Skip to content
Snippets Groups Projects
Commit 03ac11af authored by Michal Kravcenko's avatar Michal Kravcenko
Browse files

MOD: modified export of the data set to show denormalized values

parent adb93699
No related branches found
No related tags found
No related merge requests found
......@@ -239,15 +239,15 @@ namespace lib4neuro {
for (auto e : this->data) {
/* First part of the pair */
for (unsigned int i = 0; i < e.first.size() - 1; i++) {
*file_path << e.first.at(i) << ",";
*file_path << this->get_denormalized_value(e.first.at(i)) << ",";
}
*file_path << e.first.back() << " ";
*file_path << this->get_denormalized_value(e.first.back()) << " ";
/* Second part of the pair */
for (unsigned int i = 0; i < e.second.size() - 1; i++) {
*file_path << e.second.at(i) << ",";
*file_path << this->get_denormalized_value(e.second.at(i)) << ",";
}
*file_path << e.second.back() << std::endl;
*file_path << this->get_denormalized_value(e.second.back()) << std::endl;
}
}
......@@ -257,19 +257,8 @@ namespace lib4neuro {
if (!ofs.is_open()) {
THROW_RUNTIME_ERROR("File " + file_path + " couldn't be open!");
} else {
for (auto e : this->data) {
/* First part of the pair */
for (unsigned int i = 0; i < e.first.size() - 1; i++) {
ofs << e.first.at(i) << ",";
}
ofs << e.first.back() << " ";
/* Second part of the pair */
for (unsigned int i = 0; i < e.second.size() - 1; i++) {
ofs << e.second.at(i) << ",";
}
ofs << e.second.back() << std::endl;
}
this->store_data_text( &ofs );
ofs.close();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment