-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfinal.h
More file actions
31 lines (24 loc) · 1.13 KB
/
final.h
File metadata and controls
31 lines (24 loc) · 1.13 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
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define RESET "\x1B[0m" // I coded this project on Codeblocks ver 17.12.
#define RED "\x1B[31m" // However, the compiler can not execute these code
#define GREEN "\x1B[32m" // like "\x1B[0m". I tried to use textcolor which I found on the
#define YELLOW "\x1B[33m" // the Internet but it would not succeed. You can check the code
#define BLUE "\x1B[34m" // in "identifycolor.c" from line 74 to line 78.
#define MAGENTA "\x1B[35m"
#define CYAN "\x1B[36m"
#define WHITE "\x1B[37m"
void allcolor(char *file, char *hf, char *res);
// in procedure.c
double dot(double *a, double *b, uint16_t n);//
double sigmoid(double x);//
double sigmoid_derivative(double x);// // in neuron.c
void train(double input[][3], double *output, uint32_t n);//
double analyze(double input[]);//
double red (double *ar);//
double green(double ar[]); // in identify color
double blue (double ar[]);//
void rgb(double ar[],char *res);//
void compare(char *res1, char *res2); // in compare.c
double per (double a, double b);