refactor computing max_cuts

This commit is contained in:
2023-04-14 11:53:16 +02:00
parent d77d27459b
commit e689d1f69c
3 changed files with 35 additions and 15 deletions

View File

@@ -21,10 +21,12 @@ namespace mdlp {
cutPoints_t cutPoints;
size_t num_cut_points = numeric_limits<size_t>::max();
static indices_t sortIndices(samples_t&, labels_t&);
static indices_t sortIndices(samples_t &, labels_t &);
void computeCutPoints(size_t, size_t, int);
void resizeCutPoints();
bool mdlp(size_t, size_t, size_t);
size_t getCandidate(size_t, size_t);
@@ -40,11 +42,11 @@ namespace mdlp {
~CPPFImdlp();
void fit(samples_t&, labels_t&);
void fit(samples_t &, labels_t &);
cutPoints_t getCutPoints();
inline cutPoints_t getCutPoints() const { return cutPoints; };
int get_depth() const;
inline int get_depth() const { return depth; };
static inline string version() { return "1.1.1"; };
};