Neuro/Layer.h

17 lines
344 B
C++

#pragma once
#include <vector>
#include "Neuron.h"
class Layer : public std::vector < Neuron >
{
public:
Layer(unsigned int numNeurons);
void setOutputValues(const std::vector<double> & outputValues);
void feedForward(const Layer &inputLayer);
double getWeightedSum(int outputNeuron) const;
void connectTo(const Layer & nextLayer);
};