-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdml.h
More file actions
42 lines (37 loc) · 1.86 KB
/
dml.h
File metadata and controls
42 lines (37 loc) · 1.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/**
* Author(s): Arda T. Kersu
* File name: dml.h
* Date: 30th November 2023
*
* Description: Header file for the library "dml.h" that provides a set of functions to be used
* when working with diluted ML algorithms. This library is dependent on "open_csv.h",
* that is another open source library which allows for easier manipulation and usage
* of ".csv" files, and will not work without it. Although most of the functions in this
* library are just plain mathematics and nothing new, it was a challenge to find a
* C library dedicated for the operations that this library is dedicated to. Hence,
* "dml.h" was developed during the time of developing diluted ML to help ease as well as
* facilitate the DML development process.
*
* Disclaimer: This open-source project is provided "as is" without any warranty, expressed or implied.
* The contributors and maintainers disclaim any an all unintended consequences or issues
* that may arise from its use. Users are encouraged to review and understand the software's
* characteristics before implementation.
*
*
* Copyright @ [Arda T. Kersu]
*
*/
#ifndef DML_DML_H
#define DML_DML_H
#include "../open_csv/open_csv.h"
void head(csvData_t *df, int lines);
void tail(csvData_t *df, int lines);
float *randomDataStream(csvData_t *df, int numOfData);
float *createFloatVector(int len);
float mean(csvData_t *df, int col);
int compareVectors(const void *a, const void *b);
float median(csvData_t *df, int col);
float standardDeviation(csvData_t *df, int col);
float *scaleToUnity(float *vector, int vectorLen, float lowerBound, float upperBound);
float *scaleVector(float *vector, int vectorLen, float lowerBound, float upperBound, float newLowBound, float newUpBound);
#endif //DML_DML_H