Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
ecvl::AugmentationParam Class Reference

Augmentations parameters. More...

#include <augmentations.h>

Public Member Functions

 AugmentationParam ()=default
 
 AugmentationParam (const double min, const double max)
 
void GenerateValue ()
 Generate the random value between min_ and max_. More...
 

Static Public Member Functions

static void SetSeed (unsigned seed)
 Set a fixed seed for the random generated values. Useful to reproduce experiments with same augmentations. More...
 

Public Attributes

double min_
 
double max_
 
double value_
 

Static Public Attributes

static std::default_random_engine re_
 
static constexpr unsigned seed_min = std::numeric_limits<unsigned>::min()
 
static constexpr unsigned seed_max = std::numeric_limits<unsigned>::max()
 

Detailed Description

Augmentations parameters.

This class represent the augmentations parameters which must be randomly generated in a specific range.

Definition at line 177 of file augmentations.h.

Constructor & Destructor Documentation

◆ AugmentationParam() [1/2]

ecvl::AugmentationParam::AugmentationParam ( )
default

◆ AugmentationParam() [2/2]

ecvl::AugmentationParam::AugmentationParam ( const double  min,
const double  max 
)
inline

Definition at line 183 of file augmentations.h.

Member Function Documentation

◆ GenerateValue()

void ecvl::AugmentationParam::GenerateValue ( )
inline

Generate the random value between min_ and max_.

Definition at line 187 of file augmentations.h.

◆ SetSeed()

static void ecvl::AugmentationParam::SetSeed ( unsigned  seed)
inlinestatic

Set a fixed seed for the random generated values. Useful to reproduce experiments with same augmentations.

Parameters
[in]seedValue of the seed for the random engine.
Examples
example_ecvl_eddl.cpp.

Definition at line 199 of file augmentations.h.

Member Data Documentation

◆ max_

double ecvl::AugmentationParam::max_

Definition at line 180 of file augmentations.h.

◆ min_

double ecvl::AugmentationParam::min_

Definition at line 180 of file augmentations.h.

◆ re_

std::default_random_engine ecvl::AugmentationParam::re_
static

Definition at line 191 of file augmentations.h.

◆ seed_max

constexpr unsigned ecvl::AugmentationParam::seed_max = std::numeric_limits<unsigned>::max()
static

Definition at line 194 of file augmentations.h.

◆ seed_min

constexpr unsigned ecvl::AugmentationParam::seed_min = std::numeric_limits<unsigned>::min()
static

Definition at line 193 of file augmentations.h.

◆ value_

double ecvl::AugmentationParam::value_

Definition at line 180 of file augmentations.h.


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