public class AD
extends java.lang.Object
Title: AD.
Linear and Quadratic discriminant analysis, with a normal distribution of the examples for each class.Company: KEEL
Constructor and Description |
---|
AD(double[][] vejemplos,
double[][] vdeseado)
Parameter constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
argmax(double[] x)
Returns the index of the maximum element of the array given.
|
void |
CalculaParametros()
Computes the different parameters for the algorithm PSOLDA
|
java.lang.String[] |
Coeficientes()
Computes the Coeficients
|
double[] |
distancias(double[] x)
Computes the distances for the values given.
|
public AD(double[][] vejemplos, double[][] vdeseado)
vejemplos
- examples considered.vdeseado
- examples desired.public void CalculaParametros() throws ErrorDimension, ErrorSingular
ErrorDimension
- Dimension matrix error.ErrorSingular
- Sigular matrix error.public double[] distancias(double[] x) throws ErrorDimension, ErrorSingular
x
- values given to compute the distance.ErrorDimension
- Dimension matrix error.ErrorSingular
- Sigular matrix error.public java.lang.String[] Coeficientes() throws ErrorDimension, ErrorSingular
ErrorDimension
- Dimension matrix error.ErrorSingular
- Sigular matrix error.public int argmax(double[] x)
x
- array given.