33 lines
547 B
C++
33 lines
547 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <vector>
|
|
|
|
#include "Neuron.h"
|
|
|
|
namespace NeuralNetwork
|
|
{
|
|
/**
|
|
* @author Tomas Cernik (Tom.Cernik@gmail.com)
|
|
* @brief Abstract class for all Layers of neurons
|
|
*/
|
|
class Layer
|
|
{
|
|
public:
|
|
|
|
virtual ~Layer() {};
|
|
|
|
/**
|
|
* @brief This is a virtual function for selecting neuron
|
|
* @param neuron is position in layer
|
|
* @returns Specific neuron
|
|
*/
|
|
|
|
virtual Neuron& operator[](const size_t& neuron)=0;
|
|
/**
|
|
* @returns Size of layer
|
|
*/
|
|
virtual size_t size() const=0;
|
|
};
|
|
|
|
} |