Class CAfuzzy
java.lang.Object
|
+--CAfuzzy
- public class CAfuzzy
- extends java.lang.Object
CAfuzzy - Correspondence Analysis on Fuzzy Input
Jama Matrix class package, "JAMA: A Java Matrix Package" is used.
See: http://math.nist.gov/javanumerics/jama
Example of use:
javac CAfuzzy.java
java CAfuzzy iris.dat >
caoutput.txt
Format of input data set:
- integer row and column dimensions,
- followed by floating values
- which are read row-wise.
Outputs produced:
- Echo of input file name, input dimensions, sample of data
- Matrix to be diagonalized
- Eigenvectors
- Eigenvalues and as cumulative percentages
- Row projections in new factor space
- Column projections in new factor space
- Row contributions to factors
- Column contributions to factors
Version: 2002 Aug. 16
Author: F. Murtagh, f.murtagh@qub.ac.uk
Field Summary |
static double |
EPS
|
Method Summary |
static double[][] |
Fuzzify(int nrow,
int ncol,
double[][] A)
Method for fuzzyifying the input data |
static java.lang.String |
getSpaces(int n)
|
static void |
main(java.lang.String[] argv)
|
static void |
printMatrix(int n1,
int n2,
double[][] m,
int collo,
int colhi,
int d,
int w)
Method for printing a matrix
|
static void |
printVect(double[] m,
int d,
int w)
Method printVect for printing a vector
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
EPS
public static final double EPS
CAfuzzy
public CAfuzzy()
main
public static void main(java.lang.String[] argv)
getSpaces
public static java.lang.String getSpaces(int n)
printMatrix
public static void printMatrix(int n1,
int n2,
double[][] m,
int collo,
int colhi,
int d,
int w)
- Method for printing a matrix
- Parameters:
n1
- row dimension of matrixn2
- column dimension of matrixm
- input matrix valuescollo
- start column for printingcolhi
- end column for printingd
- display precision, number of decimal placesw
- display precision, total width of floating value
printVect
public static void printVect(double[] m,
int d,
int w)
- Method printVect for printing a vector
- Parameters:
m
- input vector of length m.lengthd
- display precision, number of decimal placesw
- display precision, total width of floating value
Fuzzify
public static double[][] Fuzzify(int nrow,
int ncol,
double[][] A)
- Method for fuzzyifying the input data
- Parameters:
nrow
- number of rows in input matrixncol
- number of columns in input matrixA
- input matrix valuesncolnew
- new number of columns in transformed data