Class Plane
java.lang.Object
weka.classifiers.functions.explicitboundaries.gemoetry.Plane
- All Implemented Interfaces:
Serializable
,weka.core.Debuggable
- Since:
- 0.1.0
- Version:
- 2.3.0
- Author:
- pawel
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
distanceToPlane
(weka.core.Instance vec) Calculate the distance of the vector to the planeweka.core.Instances
weka.core.Instance
double
boolean
isDebug()
boolean
weka.core.Instance
planeBasedInstance
(weka.core.Instance instance) weka.core.Instances
planeBasedInstances
(weka.core.Instances instances) weka.core.Instance
projectOnPlane
(weka.core.Instance inst) weka.core.Instances
projectOnPlane
(weka.core.Instances instances) 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.toString()
-
Constructor Details
-
Plane
public Plane(weka.core.Instances dataSpace)
-
-
Method Details
-
distanceToPlane
Calculate the distance of the vector to the plane- Parameters:
vec
- for which the distance is calculated- Returns:
- distance
- Throws:
Exception
- if instance is incompatible
-
sideOfThePlane
Dtermines on which side of the plane the vector is. The side is determined by the sign of the value- Parameters:
vec
-- Returns:
- Throws:
Exception
-
projectOnPlane
- Throws:
Exception
-
projectOnPlane
- Throws:
Exception
-
planeBasedInstances
- Throws:
Exception
-
planeBasedInstance
- Throws:
Exception
-
getNormalVector
public weka.core.Instance getNormalVector()- Returns:
- the normalVector
-
setNormalVector
- Parameters:
normalVector
- the normalVector to set- Throws:
Exception
- When the normal vector is incompatible with the dataset
-
getOffset
public double getOffset()- Returns:
- the offset
-
setOffset
public void setOffset(double offset) - Parameters:
offset
- the offset to set
-
getDotProduct
- Returns:
- the dotProduct
-
setDotProduct
- Parameters:
dotProduct
- the dotProduct to set
-
getDataHeader
public weka.core.Instances getDataHeader()- Returns:
- the dataHeader
-
toString
-
isNormalizeDistance
public boolean isNormalizeDistance()- Returns:
- the normalizeDistance
-
setNormalizeDistance
public void setNormalizeDistance(boolean normalizeDistance) - Parameters:
normalizeDistance
- the normalizeDistance to set
-
isDebug
public boolean isDebug()- Specified by:
isDebug
in interfaceweka.core.Debuggable
-
setDebug
public void setDebug(boolean debug) - Specified by:
setDebug
in interfaceweka.core.Debuggable
-