public class DecisionBoundaryPlane extends DecisionBoundary
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
|
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
DecisionBoundary
getIndex
in class DecisionBoundary
Exception
public Plane getDecisionPlane()
public String toString()
toString
in class DecisionBoundary
public double classify(weka.core.Instance instance) throws Exception
DecisionBoundary
classify
in class DecisionBoundary
Exception
public double getValue(weka.core.Instance instance) throws Exception
DecisionBoundary
getValue
in class DecisionBoundary
Exception
public double getDistance(weka.core.Instance instance) throws Exception
DecisionBoundary
getDistance
in class DecisionBoundary
Exception
Copyright © 2018. All Rights Reserved.