HDIM  1.0.0
Packages for High Dimensional Linear Regression
hdim::SoftThres< T > Struct Template Reference

Soft Threshold functor used to apply hdim::soft_threshold to each element in a matrix or vector. More...

#include <generics.hpp>

Public Types

typedef T result_type
 

Public Member Functions

 SoftThres (T lambda_in)
 Initialize proximal operator, note that the term lambda_in takes the place of 'y' in the definition of the proximal operator. More...
 
operator() (T x) const
 

Detailed Description

template<typename T>
struct hdim::SoftThres< T >

Soft Threshold functor used to apply hdim::soft_threshold to each element in a matrix or vector.

Designed to be applied with Eigen::Matrix::unaryExpr or the like.

Definition at line 288 of file generics.hpp.

Constructor & Destructor Documentation

template<typename T >
hdim::SoftThres< T >::SoftThres ( lambda_in)
inline

Initialize proximal operator, note that the term lambda_in takes the place of 'y' in the definition of the proximal operator.

Parameters
lambda_inThe equivalent of 'y' in the definition of the proximal operator the value for 'x' will be provided by the matrix element.

Definition at line 300 of file generics.hpp.