Class DecisionBoundaryPlane
java.lang.Object
weka.classifiers.functions.explicitboundaries.DecisionBoundary
weka.classifiers.functions.explicitboundaries.DecisionBoundaryPlane
- All Implemented Interfaces:
Serializable
,IDecisionBoundary
,weka.core.Debuggable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDecisionBoundaryPlane
(weka.core.Instances data, int class1Idx, int class2Idx) DecisionBoundaryPlane
(weka.core.Instances data, int class1Idx, int class2Idx, Plane plane) -
Method Summary
Modifier and TypeMethodDescriptiondouble
classify
(weka.core.Instance instance) Classify instancedouble
getDistance
(weka.core.Instance instance) Returns the smallest distance between the surface of the decision boundary and the instanceint
getIndex
(weka.core.Instance instance) Give the class index for the instancedouble
getValue
(weka.core.Instance instance) Get value of the characteristic function of the decision boundaryboolean
isDebug()
void
setDebug
(boolean debug) toString()
Methods inherited from class weka.classifiers.functions.explicitboundaries.DecisionBoundary
getClass1Idx, getClass2Idx, getDatasetHeader
-
Constructor Details
-
Method Details
-
getIndex
Description copied from interface:IDecisionBoundary
Give the class index for the instance- Specified by:
getIndex
in interfaceIDecisionBoundary
- Throws:
Exception
-
getDecisionPlane
- Returns:
- the decisionPlane
-
toString
- Overrides:
toString
in classDecisionBoundary
-
classify
Description copied from interface:IDecisionBoundary
Classify instance- Specified by:
classify
in interfaceIDecisionBoundary
- Returns:
- Throws:
Exception
-
getValue
Description copied from interface:IDecisionBoundary
Get value of the characteristic function of the decision boundary- Specified by:
getValue
in interfaceIDecisionBoundary
- Returns:
- Throws:
Exception
-
getDistance
Description copied from interface:IDecisionBoundary
Returns the smallest distance between the surface of the decision boundary and the instance- Specified by:
getDistance
in interfaceIDecisionBoundary
- Returns:
- Throws:
Exception
-
isDebug
public boolean isDebug()- Specified by:
isDebug
in interfaceweka.core.Debuggable
- Returns:
- the debug
-
setDebug
public void setDebug(boolean debug) - Specified by:
setDebug
in interfaceweka.core.Debuggable
- Parameters:
debug
- the debug to set
-