public class DecisionBoundaryPlane extends DecisionBoundary implements weka.core.Debuggable
Constructor and Description |
---|
DecisionBoundaryPlane(weka.core.Instances data,
int class1Idx,
int class2Idx) |
DecisionBoundaryPlane(weka.core.Instances data,
int class1Idx,
int class2Idx,
Plane plane) |
Modifier and Type | Method and Description |
---|---|
double |
classify(weka.core.Instance instance)
Classify instance
|
Plane |
getDecisionPlane() |
double |
getDistance(weka.core.Instance instance)
Returns the smallest distance between the surface of the decision boundary and the instance
|
int |
getIndex(weka.core.Instance instance)
Give the class index for the instance
|
double |
getValue(weka.core.Instance instance)
Get value of the characteristic function of the decision boundary
|
boolean |
isDebug() |
void |
setDebug(boolean debug) |
String |
toString() |
getClass1Idx, getClass2Idx, getDatasetHeader
public DecisionBoundaryPlane(weka.core.Instances data, int class1Idx, int class2Idx, Plane plane) throws Exception
Exception
public int getIndex(weka.core.Instance instance) throws Exception
IDecisionBoundary
getIndex
in interface IDecisionBoundary
Exception
public Plane getDecisionPlane()
public String toString()
toString
in class DecisionBoundary
public double classify(weka.core.Instance instance) throws Exception
IDecisionBoundary
classify
in interface IDecisionBoundary
Exception
public double getValue(weka.core.Instance instance) throws Exception
IDecisionBoundary
getValue
in interface IDecisionBoundary
Exception
public double getDistance(weka.core.Instance instance) throws Exception
IDecisionBoundary
getDistance
in interface IDecisionBoundary
Exception
public boolean isDebug()
isDebug
in interface weka.core.Debuggable
public void setDebug(boolean debug)
setDebug
in interface weka.core.Debuggable
debug
- the debug to setCopyright © 2020. All rights reserved.