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:

Outputs produced: Version: 2002 Aug. 16
Author: F. Murtagh, f.murtagh@qub.ac.uk


Field Summary
static double EPS
           
 
Constructor Summary
CAfuzzy()
           
 
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
 

Field Detail

EPS

public static final double EPS
Constructor Detail

CAfuzzy

public CAfuzzy()
Method Detail

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 matrix
n2 - column dimension of matrix
m - input matrix values
collo - start column for printing
colhi - end column for printing
d - display precision, number of decimal places
w - 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.length
d - display precision, number of decimal places
w - 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 matrix
ncol - number of columns in input matrix
A - input matrix values
ncolnew - new number of columns in transformed data