public class DataBase
extends java.lang.Object
Title: DataBase
Description: Fuzzy Data Base
Copyright: Copyright (c) 2008
Company: KEEL
Constructor and Description |
---|
DataBase()
Default constructor
|
DataBase(int n_variables,
double[][] ranges,
java.lang.String[] varNames,
boolean[] nominals)
Constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
Fuzzy |
copy(int i,
int j,
int k)
It makes a copy of a fuzzy label
|
double |
membership(int i,
int j,
int k,
double X)
It computes the membership degree for a input value
|
int |
nLabels(int variable)
It returns the number of possible labels for a variable.
|
int |
numVariables()
It returns the number of input variables
|
java.lang.String |
print_triangle(int var,
int label)
It prints the points of a fuzzy label
|
java.lang.String |
print(int var,
int label)
It prints the name of a fuzzy label
|
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, double[][] ranges, java.lang.String[] varNames, boolean[] nominals)
n_variables
- int Number of input variables of the problemranges
- double[][] Range of each variable (minimum and maximum values)varNames
- String[] Labels for the input attributesnominals
- boolean[] a boolean string to know if each attribute is nominal or notpublic int numVariables()
public double membership(int i, int j, int k, double X)
i
- int the input variable idj
- int the fuzzy label idk
- int the layer of the hierarchical DBX
- double the input valuepublic Fuzzy copy(int i, int j, int k)
i
- int the input variable idj
- int the fuzzy label idk
- int the layer of the hierarchical DBpublic java.lang.String print_triangle(int var, int label)
var
- int variable idlabel
- int label idpublic java.lang.String print(int var, int label)
var
- int variable idlabel
- int label idpublic java.lang.String printString()
public void writeFile(java.lang.String filename)
filename
- String the name of the output filepublic int nLabels(int variable)
variable
- int the attribute position