public class EncodingLength
extends java.lang.Object
Constructor and Description |
---|
EncodingLength() |
Modifier and Type | Method and Description |
---|---|
static double |
combinatoria(int m,
int n)
Function that calculates combinatory of two integers
|
static double |
evaluaEL(double[][] datosTrain,
double[][] realTrain,
int[][] nominalTrain,
boolean[][] nulosTrain,
int[] clasesTrain,
double[][] conjS,
double[][] conjR,
int[][] conjN,
boolean[][] conjM,
int[] clasesS,
int nClass,
int k,
int nClases,
boolean distanceEu)
Function that return the Encoding Length value of a S set
|
static double |
F(int m,
int n)
Function that calculates the F function of Encoding Length cost
|
public static double evaluaEL(double[][] datosTrain, double[][] realTrain, int[][] nominalTrain, boolean[][] nulosTrain, int[] clasesTrain, double[][] conjS, double[][] conjR, int[][] conjN, boolean[][] conjM, int[] clasesS, int nClass, int k, int nClases, boolean distanceEu)
datosTrain
- original training dataset to be evaluated.realTrain
- original training dataset to be evaluated (real valued).nominalTrain
- original training dataset to be evaluated (nominal valued).nulosTrain
- original training dataset to be evaluated (null values).clasesTrain
- original output values of training dataset to be evaluated.conjS
- Reference to the training set SconjR
- Reference to the training set S (real valued)conjN
- Reference to the training set S (nominal valued)conjM
- Reference to the training set S (null values)clasesS
- Output attribute of each instancenClass
- number of clasesk
- number of neighboursnClases
- number of classesdistanceEu
- True if euclidean distance is used.public static double F(int m, int n)
m
- first size.n
- second size.public static double combinatoria(int m, int n)
m
- first integern
- second integer