SharpNeat.Decoders.HyperNeat.Substrate.CalcBiasConnectionCountHint C# (CSharp) Method

CalcBiasConnectionCountHint() private method

Calculate the maximum number of possible bias connections. Input nodes don't have a bias therefore this value is the number of hidden and output nodes.
private CalcBiasConnectionCountHint ( List nodeSetList ) : int
nodeSetList List
return int
        private int CalcBiasConnectionCountHint(List<SubstrateNodeSet> nodeSetList)
        {
            // Count nodes in all nodesets except for the first (input) nodeset.
            int total = 0;
            int setCount = nodeSetList.Count;
            for(int i=1; i<setCount; i++)
            {
                total += nodeSetList[i].NodeList.Count;
            }
            return total;
        }