-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNeuronLayer.m
More file actions
31 lines (19 loc) · 918 Bytes
/
Copy pathNeuronLayer.m
File metadata and controls
31 lines (19 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
classdef NeuronLayer < matlab.mixin.Copyable
properties (SetAccess = public, GetAccess = public)
noOfNeurons; % number of neurons in this layer.
arrNeurons = cell(1); % the array / cell list of neurons.
noOfInputs; % number of inputs to the neurons in this layer.
arrNeuronDelta; % delta value for each neuron in this layer.
end
methods
function NEURONLAYER = NeuronLayer(noNeurons, noInputsPer)
% initialize some random neurons.
for i = 1:noNeurons
NEURONLAYER.arrNeurons{i} = Neuron(noInputsPer);
end
NEURONLAYER.noOfNeurons = noNeurons;
NEURONLAYER.noOfInputs = noInputsPer;
NEURONLAYER.arrNeuronDelta = zeros(noNeurons);
end
end
end