classPiiClassification::FeatureReader< PiiMatrix< T > >
#include <PiiClassifierOperation.h>
A function object that reads an input socket and converts the incoming object to a PiiMatrix<T>, if possible.
Description
Public types
|
typedef const T *
|
Public member functions
|
ConstFeatureIterator
|
Reads input and converts the incoming object to a PiiMatrix<T>, if possible. |
Function details
-
Reads input and converts the incoming object to a PiiMatrix<T>, if possible.
Parameters
- input
-
the input socket to read
- featureCount
-
the number of features to expect. This is an input-output parameter that must be initially set to the number of features to expect. If this value is zero, no checks will be performed. Upon return, featureCount will be set to the number of columns in the input matrix.
Returns
a pointer to the beginning of the feature vector (first row of matrix).
Exceptions
- PiiExecutionException&
-
if the input object is not a PiiMatrix or if its size is not 1-by-featureCount.
Add a note
Not a single note added yet. Be the first, add yours.