-
Notifications
You must be signed in to change notification settings - Fork 0
/
ECA.hpp
64 lines (58 loc) · 1.5 KB
/
ECA.hpp
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
52
53
54
55
56
57
58
59
60
61
62
63
64
//
// ECA.hpp
// ECA_C
//
// Created by Carlos Reyes on 25/12/17.
// Copyright © 2017 Carlos Reyes. All rights reserved.
//
#ifndef ECA_hpp
#define ECA_hpp
#include <stdio.h>
#include <iostream>
#include <cstdlib>
#include <vector>
#include <fstream>
#include <string>
using namespace std;
void ECA(int rule, int l, int times , string s);
void ECA(int rules, int l, int times, string s,int block);
/**
evolucion de un automata celular dados todos los parametros de entrada
*/
void evolution ( int * x, int * xi);
/**
evolucion de un automata celular dados todos los parametros de entrada
y devuelve un arreglo con las densidades de las configuraciones locales.
*/
int * evolutionH ( int * x, int * xi);
/**
evolucion de un automata celular dada una matriz para buscar la morfologias evolutivas
*/
void evolution( int ** x, int block);
/**
devuelve el numero de unos de una configuracion local
*/
int count (int * x);
/**
funcion de evolucion.
*/
int fi (int x, int y, int z );
/**
agrega una configuracion inicial o semilla a una configuracion local
*/
void seed(int * x, string s, int t);
/**
metodo auxiliar para encontrar patrones.
*/
void recorrer(int ** matriz, int block);
/**
genera las configuraciones posibles
*/
string word(int ** matriz, int x, int y , int block);
void reglaGlobal(int * x, int * y);
void checkVector( std::vector<string> lista , string s);
void printVector( std::vector<string> lista );
void Histograma();
void Morphological();
void Elementary();
#endif /* ECA_hpp */