Files
fimdlp/prueba/FImdlp.cpp
2022-12-02 12:54:09 +01:00

22 lines
457 B
C++

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