RandomInitializer Class Reference

A DictionaryInitializer for use with the SparseCoding class. More...

Static Public Member Functions

static void Initialize (const arma::mat &data, const size_t atoms, arma::mat &dictionary)
 Initialize the dictionary randomly from a normal distribution, such that each atom has a norm of 1. More...

 

Detailed Description

A DictionaryInitializer for use with the SparseCoding class.

This provides a random, normally distributed dictionary, such that each atom has a norm of 1.

Definition at line 25 of file random_initializer.hpp.

Member Function Documentation

◆ Initialize()

static void Initialize ( const arma::mat &  data,
const size_t  atoms,
arma::mat &  dictionary 
)
inlinestatic

Initialize the dictionary randomly from a normal distribution, such that each atom has a norm of 1.

This is simple enough to be included with the definition.

Parameters
dataDataset to use for initialization.
atomsNumber of atoms (columns) in the dictionary.
dictionaryDictionary to initialize.

Definition at line 37 of file random_initializer.hpp.


The documentation for this class was generated from the following file: