public class Plane extends Object implements Serializable, weka.core.Debuggable
Constructor and Description |
---|
Plane(weka.core.Instances dataSpace) |
Modifier and Type | Method and Description |
---|---|
double |
distanceToPlane(weka.core.Instance vec)
Calculate the distance of the vector to the plane
|
weka.core.Instances |
getDataHeader() |
DotProduct |
getDotProduct() |
weka.core.Instance |
getNormalVector() |
double |
getOffset() |
boolean |
isDebug() |
boolean |
isNormalizeDistance() |
weka.core.Instance |
projectOnPlane(weka.core.Instance inst) |
void |
setDebug(boolean debug) |
void |
setDotProduct(DotProduct dotProduct) |
void |
setNormalizeDistance(boolean normalizeDistance) |
void |
setNormalVector(weka.core.Instance normalVector) |
void |
setOffset(double offset) |
double |
sideOfThePlane(weka.core.Instance vec)
Dtermines on which side of the plane the vector is.
|
String |
toString() |
public double distanceToPlane(weka.core.Instance vec) throws Exception
vec
- for which the distance is calculatedException
- if instance is incompatiblepublic double sideOfThePlane(weka.core.Instance vec) throws Exception
vec
- Exception
public weka.core.Instance projectOnPlane(weka.core.Instance inst) throws Exception
Exception
public weka.core.Instance getNormalVector()
public void setNormalVector(weka.core.Instance normalVector) throws Exception
normalVector
- the normalVector to setException
- When the normal vector is incompatible with the datasetpublic double getOffset()
public void setOffset(double offset)
offset
- the offset to setpublic DotProduct getDotProduct()
public void setDotProduct(DotProduct dotProduct)
dotProduct
- the dotProduct to setpublic weka.core.Instances getDataHeader()
public boolean isNormalizeDistance()
public void setNormalizeDistance(boolean normalizeDistance)
normalizeDistance
- the normalizeDistance to setpublic boolean isDebug()
isDebug
in interface weka.core.Debuggable
public void setDebug(boolean debug)
setDebug
in interface weka.core.Debuggable
Copyright © 2019. All Rights Reserved.