All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.classifiers.kstar.KStarNumericAttribute

java.lang.Object
    |
    +----weka.classifiers.kstar.KStarNumericAttribute

public class KStarNumericAttribute
extends java.lang.Object
implements KStarConstants
A custom class which provides the environment for computing the transformation probability of a specified test instance numeric attribute to a specified train instance numeric attribute.

Version:
$Revision 1.0 $
Author:
Len Trigg (len@intelligenesis.net)
Author:
Abdelaziz Mahoui (am14@cs.waikato.ac.nz)

Constructor Index

 o KStarNumericAttribute(Instance, Instance, int, Instances, int[][], KStarCache)
Constructor

Method Index

 o setBlendFactor(int)
Set the blending factor
 o setBlendMethod(int)
Set the blending method
 o setMissingMode(int)
Set the missing value mode.
 o setOptions(int, int, int)
Set options.
 o transProb()
Calculates the transformation probability of the attribute indexed "m_AttrIndex" in test instance "m_Test" to the same attribute in the train instance "m_Train".

Constructor Detail

 o KStarNumericAttribute
public KStarNumericAttribute(Instance test,
                             Instance train,
                             int attrIndex,
                             Instances trainSet,
                             int randClassCols[][],
                             KStarCache cache)
          Constructor

Method Detail

 o transProb
public double transProb()
          Calculates the transformation probability of the attribute indexed "m_AttrIndex" in test instance "m_Test" to the same attribute in the train instance "m_Train".
Returns:
the probability value
 o setOptions
public void setOptions(int missingmode,
                       int blendmethod,
                       int blendfactor)
          Set options.
Parameters:
missingmode - the missing value treatment to use
blendmethod - the blending method to use
blendfactor - the level of blending to use
 o setMissingMode
public void setMissingMode(int mode)
          Set the missing value mode.
Parameters:
mode - the type of missing value treatment to use
 o setBlendMethod
public void setBlendMethod(int method)
          Set the blending method
Parameters:
method - the blending method to use
 o setBlendFactor
public void setBlendFactor(int factor)
          Set the blending factor
Parameters:
factor - the level of blending to use

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home