public class Ecm
extends java.lang.Object
Constructor and Description |
---|
Ecm(int long_tabla_tra,
double[][] vtra,
double[] stra,
int long_tabla_tst,
double[][] vtest,
double[] stest,
int n_variables,
int reglas,
int var,
double sal,
double[] v)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
Base |
base()
Returns the fuzzy rules base.
|
double |
ECM_tra(double[] cromosoma,
char[] cromosomaR,
int n_reglas_total)
It calculates the mean square error(MSE) of the training data
|
double |
ECM_tst(double[] cromosoma,
char[] cromosomaR,
int n_reglas_total)
It calculates the mean square error(MSE) of the test data
|
double |
eval_EC(double[] cromosoma,
char[] cromosomaR,
int n_reglas_total)
It evaluates by MSE
|
int |
num_reglas()
Returns the number of rules generated.
|
void |
set_tipoBC(int value)
Sets the BC type with the value given
|
int |
tipoBC()
Returns the BC type.
|
public Ecm(int long_tabla_tra, double[][] vtra, double[] stra, int long_tabla_tst, double[][] vtest, double[] stest, int n_variables, int reglas, int var, double sal, double[] v)
long_tabla_tra
- it contains the size of the training tablevtra
- it contains the input training datastra
- it contains the output training datalong_tabla_tst
- it contains the size of the test tablevtest
- it contains the input training datastest
- it contains the output training datan_variables
- it contains the number of variablesreglas
- it contains the number of rulesvar
- it contains the number of state variablessal
- it contains the defect exit valuev
- it contains the values of data basepublic Base base()
public int num_reglas()
public int tipoBC()
public void set_tipoBC(int value)
value
- value given to be set.public double ECM_tra(double[] cromosoma, char[] cromosomaR, int n_reglas_total)
cromosoma
- it contains the chromosome valuescromosomaR
- it contains the chromosome of rules valuesn_reglas_total
- it contains the number of total rulespublic double ECM_tst(double[] cromosoma, char[] cromosomaR, int n_reglas_total)
cromosoma
- it contains the chromosome valuescromosomaR
- it contains the chromosome of rules valuesn_reglas_total
- it contains the number of total rulespublic double eval_EC(double[] cromosoma, char[] cromosomaR, int n_reglas_total)
cromosoma
- it contains the chromosome valuescromosomaR
- it contains the chromosome of rules valuesn_reglas_total
- it contains the number of total rules