NNetCpp
Neural network implementation in C++
 All Classes Namespaces Functions Variables
Public Member Functions | List of all members
RandomWeightGenerator Class Reference

#include <RandomWeightGenerator.h>

Inheritance diagram for RandomWeightGenerator:
WeightGenerator

Public Member Functions

 RandomWeightGenerator (double weightMin=RandomWeightGenerator::DEFAULT_MIN, double weightMax=RandomWeightGenerator::DEFAULT_MAX)
 
double getWeight ()
 

Detailed Description

Weight Generator for generating random weights

Constructor & Destructor Documentation

RandomWeightGenerator::RandomWeightGenerator ( double  weightMin = RandomWeightGenerator::DEFAULT_MIN,
double  weightMax = RandomWeightGenerator::DEFAULT_MAX 
)

Create new RandomWeightGenerator for generating weights in the interval [weightMin, weightMax)

Parameters
weightMinbottom limit of random interval
weightMaxupper limit of random interval

Member Function Documentation

double RandomWeightGenerator::getWeight ( )
virtual

Generate a new random weight
Inherits:
Get a new weight from the generator

Returns
the new weight

Implements WeightGenerator.


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