public class BaseD
extends java.lang.Object
Title: BaseD
Description: Contains the definition of the data base
Copyright: Copyright (c) 2009
Company: KEEL
Constructor and Description |
---|
BaseD()
Default constructor
|
BaseD(int n_vars,
int n_labels,
double[][] ranges,
java.lang.String[] names)
Constructor with parameters.
|
Modifier and Type | Method and Description |
---|---|
Difuso |
copia(int i,
int j)
It makes a copy of a fuzzy label
|
void |
escribeFichero(java.lang.String filename)
It writes the Data Base into an output file
|
double |
membership(int i,
int j,
double X)
It computes the membership degree for a input value
|
int |
numEtiquetas()
It returns the number of fuzzy labels
|
int |
numVariables()
It returns the number of input variables
|
java.lang.String |
print(int var,
int label)
It prints a single label of the Data Base into an string
|
java.lang.String |
printString()
It prints the Data Base into an string
|
public BaseD()
public BaseD(int n_vars, int n_labels, double[][] ranges, java.lang.String[] names)
n_vars
- int Number of input variables of the problemn_labels
- int Number of fuzzy labelsranges
- double[][] Range of each variable (minimum and maximum values)names
- String[] Labels for the input attributespublic int numVariables()
public int numEtiquetas()
public double membership(int i, int j, double X)
i
- int the input variable idj
- int the fuzzy label idX
- double the input valuepublic Difuso copia(int i, int j)
i
- int the input variable idj
- int the fuzzy label idpublic java.lang.String printString()
public java.lang.String print(int var, int label)
var
- int the variable idlabel
- int the label idpublic void escribeFichero(java.lang.String filename)
filename
- String the name of the output file