binarize.hpp File Reference
Include dependency graph for binarize.hpp:

Go to the source code of this file.

Namespaces

 mlpack
 
Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::data
 
Functions to load and save matrices and models.
 

Functions

template
<
typename
T
>
void Binarize (const arma::Mat< T > &input, arma::Mat< T > &output, const double threshold)
 Given an input dataset and threshold, set values greater than threshold to 1 and values less than or equal to the threshold to 0. More...

 
template
<
typename
T
>
void Binarize (const arma::Mat< T > &input, arma::Mat< T > &output, const double threshold, const size_t dimension)
 Given an input dataset and threshold, set values greater than threshold to 1 and values less than or equal to the threshold to 0. More...

 

Detailed Description

Author
Keon Kim

Defines Binarize(), a utility function, sets values to 0 or 1 to a given threshold.

mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.

Definition in file binarize.hpp.