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)
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 |
writeFile(java.lang.String filename)
It writes the Data Base into an output file
|
public DataBase()
public DataBase(int n_variables, int n_labels, double[][] rangos, java.lang.String[] names)
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 attributespublic 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 java.lang.String printString()
public void writeFile(java.lang.String filename)
filename
- String the name of the output file