Refactor tests

This commit is contained in:
2022-12-02 12:54:09 +01:00
parent 0686195854
commit 5657c1cd9f
14 changed files with 265 additions and 174 deletions

View File

@@ -1,21 +1,18 @@
#include "FImdlp.h"
namespace FImdlp
{
namespace FImdlp {
FImdlp::FImdlp()
{
}
FImdlp::~FImdlp()
{
}
std::vector<float> FImdlp::cutPoints(std::vector<int> &X, std::vector<int> &y)
samples FImdlp::cutPoints(labels& X, labels& y)
{
std::vector<float> cutPts;
samples cutPts;
int i, ant = X.at(0);
int n = X.size();
for (i = 1; i < n; i++)
{
if (X.at(i) != ant)
{
for (i = 1; i < n; i++) {
if (X.at(i) != ant) {
cutPts.push_back(float(X.at(i) + ant) / 2);
ant = X.at(i);
}