Add coypright header to sources

Fix coverage report
Add coverage badge to README
This commit is contained in:
2024-07-03 23:43:08 +02:00
parent fcbd05d842
commit cb3659b225
24 changed files with 213 additions and 37 deletions

View File

@@ -1,3 +1,9 @@
// ****************************************************************
// SPDX - FileCopyrightText: Copyright 2024 Ricardo Montañana Gómez
// SPDX - FileType: SOURCE
// SPDX - License - Identifier: MIT
// ****************************************************************
#include "Discretizer.h"
namespace mdlp {
@@ -14,11 +20,6 @@ namespace mdlp {
for (const precision_t& item : data) {
auto pos = bound(first, last, item);
int number = pos - first;
/*
OJO
*/
if (number < 0)
throw std::runtime_error("number is less than 0 in discretizer::transform");
discretizedData.push_back(number);
}
return discretizedData;