-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdataStatics.h
More file actions
51 lines (32 loc) · 1.12 KB
/
dataStatics.h
File metadata and controls
51 lines (32 loc) · 1.12 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
43
44
45
46
47
48
49
50
51
//
// dataStatics.h
//
//
// Created by Samantha Morris 25/03/2021.
//
#ifndef dataStatics_h
#define dataStatics_h
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
/* Set EXTERN macro: */
#ifndef dataStatics_IMPORT
#define EXTERN
#else
#define EXTERN extern
#endif
/* Function prototypes. */
EXTERN float addMatrix (float **Matrix, int *numLines, int *numElements);
EXTERN float calculateMean(float *suma, int *numLines);
EXTERN float calculateMode();
EXTERN float calculateMedian(float *array, int *numLines);
EXTERN float calculateStandardDeviation(float *array, float *mean, int *numLines);
EXTERN float addData(float *arr, int *numLines);
EXTERN void sortArray(float **Matrix, int *numLines, int *numElements, float *array, int postition);
EXTERN void writeCSV(float *mean, float *median, float *mode, float *SD);
EXTERN void createGraph(void);
EXTERN void histogram (float *arr, int *numLines, int position);
EXTERN void Rango(float *array, int *numLineas, float *min, float *max);
#endif /* dataStatics.h */