LCFIVertex  0.7.2
LinearNeuronBuilder.h
1 #ifndef LINEARNEURONBUILDER_H
2 #define LINEARNEURONBUILDER_H
3 
4 #include "NeuralNetConfig.h"
5 #include "NeuronBuilder.h"
6 
7 #include <string>
8 #include <vector>
9 
10 //namespace nnet added 15/08/06 by Mark Grimes (mark.grimes@bristol.ac.uk) for the LCFI vertex package
11 namespace nnet
12 {
13 
14 class Neuron;
15 
16 class NEURALNETDLL LinearNeuronBuilder
17  : public NeuronBuilder
18 {
19 public:
20  LinearNeuronBuilder(void);
21  ~LinearNeuronBuilder(void);
22  Neuron *buildNeuron(const int numberOfInputs,const double bias=-1.0) const;
23  Neuron *buildNeuron(const int numberOfInputs,const std::vector<double> &constructionData) const;
24  void setConstructedNeuronSlopeEnd(const double slopeEnd);
25  std::string buildsType() const
26  { return "LinearNeuron";}
27 
28 private:
29  double _slopeEnd;
30 };
31 
32 }//namespace nnet
33 
34 #endif