summaryrefslogtreecommitdiff
path: root/2015-spacebot/include/brain/neural_link.h
blob: 14f58b9b55a5f26cc57b566515f30905dc35b1a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "neural_node.h"

class NeuralLink
{
public:
    NeuralLink(NeuralNode* input, double weight);
    double weightedActivation() const;

    double weight() const { return _weight; }
    std::string inputIdentifier() const { return _input->identifier(); }
    
private:
    NeuralNode* _input;
    double _weight;
};