weka.classifiers.misc
Class FLR.FuzzyLattice

java.lang.Object
  extended byweka.classifiers.misc.FLR.FuzzyLattice
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
FLR

private class FLR.FuzzyLattice
extends java.lang.Object
implements java.io.Serializable

Fuzzy Lattice implementation in WEKA

Version:
5.0
Author:
Ioannis N. Athanasiadis email: ionathan@iti.gr alias: ionathan@ieee.org

Field Summary
private  int categ
           
private  java.lang.String className
           
private  double[] max
           
private  double[] min
           
 
Constructor Summary
FLR.FuzzyLattice(Instance dR, FLR.FuzzyLattice bounds)
          Constructs a Fuzzy Lattice from a instance
FLR.FuzzyLattice(int length)
          Constructs an empty Fuzzy Lattice of a specific dimension pointing in Class "Metric Space" (-1)
FLR.FuzzyLattice(java.lang.String rule)
          Converts a String to a Fuzzy Lattice pointing in Class "Metric Space" (-1) Note that the input String should be compatible with the toString() method.
 
Method Summary
 int getCateg()
           
 java.lang.String getClassName()
           
 double getMax(int i)
           
 double getMin(int i)
           
 FLR.FuzzyLattice join(FLR.FuzzyLattice lattice)
          Implements the Join Function
 int length()
          Calcualtes the length of the FuzzyLattice
 void setCateg(int i)
           
 void setClassName(java.lang.String s)
           
 void setMax(int i, double val)
           
 void setMin(int i, double val)
           
 java.lang.String toString()
          Returns a description of the Fuzzy Lattice
 double valuation(FLR.FuzzyLattice bounds)
          Calculates the valuation function of the FuzzyLattice
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

min

private double[] min

max

private double[] max

categ

private int categ

className

private java.lang.String className
Constructor Detail

FLR.FuzzyLattice

public FLR.FuzzyLattice(Instance dR,
                        FLR.FuzzyLattice bounds)
Constructs a Fuzzy Lattice from a instance

Parameters:
dR - the instance
bounds - the boundaries file

FLR.FuzzyLattice

public FLR.FuzzyLattice(int length)
Constructs an empty Fuzzy Lattice of a specific dimension pointing in Class "Metric Space" (-1)

Parameters:
length - the dimention of the Lattice

FLR.FuzzyLattice

public FLR.FuzzyLattice(java.lang.String rule)
Converts a String to a Fuzzy Lattice pointing in Class "Metric Space" (-1) Note that the input String should be compatible with the toString() method.

Parameters:
rule - the input String.
Method Detail

valuation

public double valuation(FLR.FuzzyLattice bounds)
Calculates the valuation function of the FuzzyLattice

Parameters:
bounds - corresponding boundaries
Returns:
the value of the valuation function

length

public int length()
Calcualtes the length of the FuzzyLattice

Returns:
the length

join

public FLR.FuzzyLattice join(FLR.FuzzyLattice lattice)
Implements the Join Function

Parameters:
lattice - the second fuzzy lattice
Returns:
the joint lattice

getCateg

public int getCateg()

setCateg

public void setCateg(int i)

getClassName

public java.lang.String getClassName()

setClassName

public void setClassName(java.lang.String s)

getMin

public double getMin(int i)

getMax

public double getMax(int i)

setMin

public void setMin(int i,
                   double val)

setMax

public void setMax(int i,
                   double val)

toString

public java.lang.String toString()
Returns a description of the Fuzzy Lattice

Returns:
the Fuzzy Lattice and the corresponding Class