# additive_generator Class Reference

`#include <additive_generator.h>`

List of all members.

## Public Member Functions
itpp::mat | next ()
void | from_setting (const Setting &set)
virtual string | to_string ()
| This method returns a basic info about the current instance.
virtual void | to_setting (Setting &set) const
| This method save all the instance properties into the Setting structure.
virtual void | validate ()
| This method TODO.

## Detailed Description

Iteratively adds squared random vector to a random matrix.

## Member Function Documentation

void additive_generator::from_setting | ( | const Setting & | set | ) | `[virtual]`

Load from structure with elements:

     { size = 7; // size (rows == cols) of the generated matrix
       lambda = 0.5; // weight of the added vector
     }

size is mandatory, lambda optional (with default as shown).

Reimplemented from bdm::root.

mat additive_generator::next | ( |  | ) | `[virtual]`

Generates a matrix. Returned matrices should become progressively more complicated.

Implements generator.

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

- additive_generator.h
- additive_generator.cpp