public class DataBase
extends java.lang.Object
Title: DataBase
Description: This class contains the representation of a Fuzzy Data Base
Copyright: Copyright KEEL (c) 2007
Company: KEEL
| Constructor and Description |
|---|
DataBase()
Default constructor
|
DataBase(int n_variables,
int n_labels,
double[][] rangos,
java.lang.String[] names,
int n_layer)
Constructor with parameters.
|
| Modifier and Type | Method and Description |
|---|---|
Fuzzy |
clone(int i,
int j)
It makes a copy of a fuzzy label
|
double |
membershipFunction(int i,
int j,
double X)
It computes the membership degree for a input value
|
int |
numLabels()
It returns the number of fuzzy labels
|
int |
numVariables()
It returns the number of input variables
|
java.lang.String |
printString()
It prints the Data Base into an string
|
void |
updateFuzzyLabels(double[][] tuning_matrix)
Updates the fuzzy labels stored in the current database according to a lateral tuning given
|
public DataBase()
public DataBase(int n_variables,
int n_labels,
double[][] rangos,
java.lang.String[] names,
int n_layer)
n_variables - int Number of input variables of the problemn_labels - int Number of fuzzy labelsrangos - double[][] Range of each variable (minimum and maximum values)names - String[] Labels for the input attributesn_layer - Number of the layer of this data base (lowest layer value is 1)public int numVariables()
public int numLabels()
public double membershipFunction(int i,
int j,
double X)
i - int the input variable idj - int the fuzzy label idX - double the input valuepublic Fuzzy clone(int i, int j)
i - int the input variable idj - int the fuzzy label idpublic void updateFuzzyLabels(double[][] tuning_matrix)
tuning_matrix - Double matrix codifying the lateral tuning that needs to be applied to the current fuzzy valuespublic java.lang.String printString()