HyperplaneBase defines a splitting hyperplane based on a projection vector and projection value.
More...
|
| | HyperplaneBase () |
| | Empty Constructor. More...
|
| |
| | HyperplaneBase (const ProjVectorType &projVect, double splitVal) |
| | Create the hyperplane with the specified projection vector and split value. More...
|
| |
| bool | Left (const BoundType &bound) const |
| | Determine if the given bound is to the left of the hyperplane. More...
|
| |
| template<typename VecType > |
| bool | Left (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| | Determine if the given point is to the left of the hyperplane, this means if the projection over the projection vector is negative or zero. More...
|
| |
| template<typename VecType > |
| double | Project (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| | Project the given point on the projection vector and subtract the split value. More...
|
| |
| bool | Right (const BoundType &bound) const |
| | Determine if the given bound is to the right of the hyperplane. More...
|
| |
| template<typename VecType > |
| bool | Right (const VecType &point, typename std::enable_if_t< IsVector< VecType >::value > *=0) const |
| | Determine if the given point is to the right of the hyperplane, this means if the projection over the projection vector is positive. More...
|
| |
| template<typename Archive > |
| void | serialize (Archive &ar, const unsigned int) |
| | Serialization. More...
|
| |
template<typename BoundT, typename ProjVectorT>
class mlpack::tree::HyperplaneBase< BoundT, ProjVectorT >
HyperplaneBase defines a splitting hyperplane based on a projection vector and projection value.
- Template Parameters
-
Definition at line 30 of file hyperplane.hpp.
◆ BoundType
Useful typedef for the bound type.
Definition at line 34 of file hyperplane.hpp.
◆ ProjVectorType
Useful typedef for the projection vector type.
Definition at line 36 of file hyperplane.hpp.
◆ HyperplaneBase() [1/2]
Empty Constructor.
By default will consider all points to the left.
Definition at line 49 of file hyperplane.hpp.
◆ HyperplaneBase() [2/2]
Create the hyperplane with the specified projection vector and split value.
- Parameters
-
| projVect | Projection vector. |
| splitVal | Split value. |
Definition at line 59 of file hyperplane.hpp.
◆ Left() [1/2]
Determine if the given bound is to the left of the hyperplane.
- Parameters
-
| bound | Bound to be analyzed. |
Definition at line 110 of file hyperplane.hpp.
◆ Left() [2/2]
Determine if the given point is to the left of the hyperplane, this means if the projection over the projection vector is negative or zero.
- Parameters
-
| point | Point to be analyzed. |
Definition at line 86 of file hyperplane.hpp.
◆ Project()
◆ Right() [1/2]
Determine if the given bound is to the right of the hyperplane.
- Parameters
-
| bound | Bound to be analyzed. |
Definition at line 122 of file hyperplane.hpp.
◆ Right() [2/2]
Determine if the given point is to the right of the hyperplane, this means if the projection over the projection vector is positive.
- Parameters
-
| point | Point to be analyzed. |
Definition at line 99 of file hyperplane.hpp.
◆ serialize()
| void serialize |
( |
Archive & |
ar, |
|
|
const unsigned int |
|
|
) |
| |
|
inline |
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/mlpack-3.4.2/src/mlpack/core/tree/space_split/hyperplane.hpp