weka.roughset
Class Reduct

java.lang.Object
  |
  +--weka.roughset.Reduct

public class Reduct
extends Object


Constructor Summary
Reduct(Attributes a, Instance i)
           
Reduct(Attributes a, Instance i, Instances insts)
           
Reduct(MDCutPoints c, Attributes a, Instances i)
           
 
Method Summary
 boolean equals(Object o)
           
 Attributes getAttributes()
          Get the value of attributes.
 boolean getCompareDataSets()
          Get the value of compareDataSets.
 MDCutPoints getCuts()
          Get the value of cuts.
 Instance getInstance()
          Get the value of instance.
 Instances getInstances()
          Get the value of instances.
 Reducts getReductSet()
          Get the value of reductSet.
 int hashCode()
           
static boolean isProperReduct(Attributes a, Instances i)
          Can we remove an attribute from a reduct and still have a reduct?
static boolean isReduct(Attributes a, Instances i)
          Do the equivalence classes induced by the attributes in 'a' have the same decision values?
static void main(String[] args)
           
 void setAttributes(Attributes v)
          Set the value of attributes.
 void setCompareDataSets(boolean v)
          Set the value of compareDataSets.
 void setCuts(MDCutPoints v)
          Set the value of cuts.
 void setInstance(Instance v)
          Set the value of instance.
 void setInstances(Instances v)
          Set the value of instances.
 void setReductSet(Reducts v)
          Set the value of reductSet.
 int size()
           
 double stability()
          In the reduct set that this reduct is part of, how many other reducts have the same set of attributes but different reduct domains?
 boolean subsetOf(Reduct r)
           
 String toInfoString()
           
 String toString()
           
static Reduct trimReduct(Reduct superReduct)
          Algorithm 6 in some Efficient Algorithms for Rough Set methods
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Reduct

public Reduct(MDCutPoints c,
              Attributes a,
              Instances i)

Reduct

public Reduct(Attributes a,
              Instance i)

Reduct

public Reduct(Attributes a,
              Instance i,
              Instances insts)
Method Detail

getInstance

public Instance getInstance()
Get the value of instance.

Returns:
value of instance.

setInstance

public void setInstance(Instance v)
Set the value of instance.

Parameters:
v - Value to assign to instance.

getCuts

public MDCutPoints getCuts()
Get the value of cuts.

Returns:
value of cuts.

setCuts

public void setCuts(MDCutPoints v)
Set the value of cuts.

Parameters:
v - Value to assign to cuts.

getAttributes

public Attributes getAttributes()
Get the value of attributes.

Returns:
value of attributes.

setAttributes

public void setAttributes(Attributes v)
Set the value of attributes.

Parameters:
v - Value to assign to attributes.

getInstances

public Instances getInstances()
Get the value of instances.

Returns:
value of instances.

setInstances

public void setInstances(Instances v)
Set the value of instances.

Parameters:
v - Value to assign to instances.

getCompareDataSets

public boolean getCompareDataSets()
Get the value of compareDataSets.

Returns:
value of compareDataSets.

setCompareDataSets

public void setCompareDataSets(boolean v)
Set the value of compareDataSets.

Parameters:
v - Value to assign to compareDataSets.

getReductSet

public Reducts getReductSet()
Get the value of reductSet.

Returns:
value of reductSet.

setReductSet

public void setReductSet(Reducts v)
Set the value of reductSet.

Parameters:
v - Value to assign to reductSet.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

stability

public double stability()
In the reduct set that this reduct is part of, how many other reducts have the same set of attributes but different reduct domains? Divide that number by the total number of subtables in the reduct set. Strangely


subsetOf

public boolean subsetOf(Reduct r)

isReduct

public static boolean isReduct(Attributes a,
                               Instances i)
Do the equivalence classes induced by the attributes in 'a' have the same decision values? In such a case we have a relative reduct, albeit not necessarily a proper one.


isProperReduct

public static boolean isProperReduct(Attributes a,
                                     Instances i)
Can we remove an attribute from a reduct and still have a reduct? in such case it is not a proper reduct.


trimReduct

public static Reduct trimReduct(Reduct superReduct)
Algorithm 6 in some Efficient Algorithms for Rough Set methods


toString

public String toString()
Overrides:
toString in class Object

toInfoString

public String toInfoString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

size

public int size()

main

public static void main(String[] args)