public class KStarNumericAttribute extends java.lang.Object implements KStarConstants, RevisionHandler
B_ENTROPY, B_SPHERE, EPSILON, FLOOR, FLOOR1, INITIAL_STEP, LOG2, M_AVERAGE, M_DELETE, M_MAXDIFF, M_NORMAL, NUM_RAND_COLS, OFF, ON, ROOT_FINDER_ACCURACY, ROOT_FINDER_MAX_ITER
Constructor and Description |
---|
KStarNumericAttribute(Instance test,
Instance train,
int attrIndex,
Instances trainSet,
int[][] randClassCols,
KStarCache cache)
Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getRevision()
Returns the revision string.
|
void |
setBlendFactor(int factor)
Set the blending factor
|
void |
setBlendMethod(int method)
Set the blending method
|
void |
setMissingMode(int mode)
Set the missing value mode.
|
void |
setOptions(int missingmode,
int blendmethod,
int blendfactor)
Set options.
|
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".
|
public KStarNumericAttribute(Instance test, Instance train, int attrIndex, Instances trainSet, int[][] randClassCols, KStarCache cache)
public double transProb()
public void setOptions(int missingmode, int blendmethod, int blendfactor)
missingmode
- the missing value treatment to useblendmethod
- the blending method to useblendfactor
- the level of blending to usepublic void setMissingMode(int mode)
mode
- the type of missing value treatment to usepublic void setBlendMethod(int method)
method
- the blending method to usepublic void setBlendFactor(int factor)
factor
- the level of blending to usepublic java.lang.String getRevision()
getRevision
in interface RevisionHandler