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,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
It calculates the mean square error(MSE) of the training data
|
double |
ECM_tst(double[] cromosoma,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
It calculates the mean square error(MSE) of the test data
|
double |
eval_EC(double[] cromosoma,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
It calculates the mean square error(MSE) of the training data
|
int |
num_reglas()
Returns the number of rules generated.
|
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 double ECM_tra(double[] cromosoma,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
cromosoma - it contains the chromosome valuescromosomaA - it contains the chromosome of amplitude valuescromosomaR - it contains the chromosome of rules valuesn_reglas_total - the number of total rulespublic double ECM_tst(double[] cromosoma,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
cromosoma - it contains the chromosome valuescromosomaA - it contains the chromosome of amplitude valuescromosomaR - it contains the chromosome of rules valuesn_reglas_total - the number of total rulespublic double eval_EC(double[] cromosoma,
double[] cromosomaA,
char[] cromosomaR,
int n_reglas_total)
cromosoma - it contains the chromosome valuescromosomaA - it contains the chromosome of amplitude valuescromosomaR - it contains the chromosome of rules valuesn_reglas_total - the number of total rules