Neuro/Layer.h

19 lines
383 B
C
Raw Normal View History

#pragma once
#include <vector>
#include "Neuron.h"
class Layer : public std::vector < Neuron >
{
public:
2015-10-15 20:37:13 +00:00
Layer(size_t numNeurons);
void setOutputValues(const std::vector<double> & outputValues);
void feedForward(const Layer &inputLayer);
double getWeightedSum(int outputNeuron) const;
void connectTo(const Layer & nextLayer);
void updateInputWeights(Layer &prevLayer);
};