ppforest2 v0.1.0
Projection Pursuit Decision Trees and Random Forests
Loading...
Searching...
No Matches
Types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Dense>
4
14#ifdef PPFOREST2_DOUBLE_PRECISION
15 using Feature = double;
16#else
17 using Feature = float;
18#endif
19
21 using Response = int;
22
24 using FeatureMatrix = Eigen::Matrix<Feature, Eigen::Dynamic, Eigen::Dynamic>;
26 using FeatureVector = Eigen::Matrix<Feature, Eigen::Dynamic, 1>;
27
29 using ResponseVector = Eigen::Matrix<Response, Eigen::Dynamic, 1>;
30
32 template<typename T> using Matrix = Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>;
33
35 template<typename T> using Vector = Eigen::Matrix<T, Eigen::Dynamic, 1>;
36}
Core numeric type aliases for the ppforest2 library.
Definition Types.hpp:12
Eigen::Matrix< Feature, Eigen::Dynamic, Eigen::Dynamic > FeatureMatrix
Dynamic-size matrix of feature values.
Definition Types.hpp:24
Eigen::Matrix< Feature, Eigen::Dynamic, 1 > FeatureVector
Dynamic-size column vector of feature values.
Definition Types.hpp:26
int Response
Scalar type for group labels (integer).
Definition Types.hpp:21
Eigen::Matrix< Response, Eigen::Dynamic, 1 > ResponseVector
Dynamic-size column vector of group labels.
Definition Types.hpp:29
Eigen::Matrix< T, Eigen::Dynamic, 1 > Vector
Generic dynamic-size column vector.
Definition Types.hpp:35
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > Matrix
Generic dynamic-size matrix.
Definition Types.hpp:32
float Feature
Scalar type for feature values (float or double).
Definition Types.hpp:17