-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathprocess.h
More file actions
18 lines (15 loc) · 758 Bytes
/
process.h
File metadata and controls
18 lines (15 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef PROCESS_H
#define PROCESS_H
#include "classMember.h"
#include <vector>
#include <unordered_map>
#include <string>
#include <ap.h>
std::unordered_map<std::string, std::vector<double> > process(std::vector<ClassMember> dataset);
double euclideanDistance(const std::vector<double>& a, const std::vector<double>& b);
void removeFeatures(const std::vector<size_t>& indices, std::vector<ClassMember>& dataset);
void normalizeFeatures(std::vector<ClassMember>& dataset);
void copyDatapoints(std::vector<ClassMember>& dataset, alglib::real_2d_array& datapoints, bool to_alglib_array);
void projectOntoPrincipalAxes(const alglib::real_2d_array& datapoints, const alglib::real_2d_array& principalAxes,
alglib::real_2d_array& principalComponents);
#endif