home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / CPROG / AI-90-10.ZIP / NEURAL.RPT < prev    next >
Text File  |  1990-10-01  |  9KB  |  153 lines

  1. 10/1/1990                                                                                                              Page:  1
  2. PC-METRIC (C++) Version 1.0
  3. Complexity Report by Function for: C:\TC\BIN\FINAL\NEURON.CPP
  4. -------------------------------------------------------------
  5.  
  6. Function                                   FT    n1    n2    N1    N2       N     N^   P/R       V         E VG1 VG2  LOC   <;>  SP
  7. ------------------------------------------ -- ----- ----- ----- ----- ------- ------ ----- ------- --------- --- --- ---- ----- ---
  8. Neuron::Neuron(void )                             3     4     7     6      13     13  0.98      36        82   1   1    6     3   0
  9. Neuron::transfer(void )                          10     4    11     6      17     41  2.42      65       485   1   1    5     1   0
  10. Neuron::derivTransfer(float )                     8     4     9     6      15     32  2.13      54       323   1   1    5     2   0
  11.  
  12. Number of functions in this file: 3
  13.  
  14. 10/1/1990                                                                                                              Page:  2
  15. PC-METRIC (C++) Version 1.0
  16. Complexity Report by Function for: C:\TC\BIN\FINAL\NETWORK.CPP
  17. --------------------------------------------------------------
  18.  
  19. Function                                   FT    n1    n2    N1    N2       N     N^   P/R       V         E VG1 VG2  LOC   <;>  SP
  20. ------------------------------------------ -- ----- ----- ----- ----- ------- ------ ----- ------- --------- --- --- ---- ----- ---
  21. Network::adjustWeights(void )                    11     4    13     7      20     46  2.30      78       752   2   2    5     3   0
  22. Network::allForward(void )                       13     4    22     7      29     56  1.93     119      1348   2   2   10     6   0
  23. Network::backwardProp(void )                      6     1    10     1      11     16  1.41      31        93   1   1    6     3   1
  24. Network::calcMiddleError(void )                  16    14    44    36      80    117  1.47     393      8075   3   3   12     8   1
  25. Network::calcOutputError(void )                  18    13    49    35      84    123  1.47     416     10084   6   6   22     8   3
  26. Network::atEpochEnd(void )                       10     7    18     9      27     53  1.96     110       709   2   2   10     5   1
  27. Network::display(void )                          15    30    81    60     141    206  1.46     774     11615   5   5   21    12   1
  28. Network::displayDiff(void )                      21    23    81    49     130    196  1.51     710     15876   5   5   25    17   4
  29. Network::displayTotalError(void )                 4     5     8     5      13     20  1.51      41        82   1   1    4     1   0
  30. Network::displayPerformance(unsigned long        11    11    27    18      45     76  1.69     201      1806   1   1    7     4   1
  31. Network::forwardPass(void )                      18    18    85    64     149    150  1.01     770     24650   7   7   26    20   3
  32. Network::Network(void )                           3     5     9     8      17     16  0.96      51       122   1   1    7     4   0
  33. Network::Network(int int )                       22    18    97    57     154    173  1.12     820     28549   8   8   38    21   4
  34. Network::trained(void )                           7     4     9     4      13     28  2.13      45       157   2   2    7     2   0
  35. Network::trainingFile(char )                     35    53   326   191     517    483  0.93    3340    210611  21  21  106    69  11
  36. Network::zeroTotalError(void )                    3     2     3     2       5      7  1.35      12        17   1   1    4     1   0
  37.  
  38. Number of functions in this file: 16
  39.  
  40. 10/1/1990                                                                                                              Page:  3
  41. PC-METRIC (C++) Version 1.0
  42. Complexity Report by Function for: C:\TC\BIN\FINAL\CONNECTI.CPP
  43. ---------------------------------------------------------------
  44.  
  45. Function                                   FT    n1    n2    N1    N2       N     N^   P/R       V         E VG1 VG2  LOC   <;>  SP
  46. ------------------------------------------ -- ----- ----- ----- ----- ------- ------ ----- ------- --------- --- --- ---- ----- ---
  47. Connection::adjust(void )                         8     9    15    13      28     53  1.88     114       661   1   1    9     2   0
  48. Connection::displaySelf(void )                    4     5     8     5      13     20  1.51      41        82   1   1    4     1   0
  49. Connection::feedForward(void )                    5     5     6     5      11     23  2.11      37        91   1   1    4     1   0
  50. Connection::set(Neuron Neuron )                   3     4     5     4       9     13  1.42      25        38   1   1    5     2   0
  51. Connection::setRandom(float float float )         8    13    19    13      32     72  2.25     141       562   1   1    8     5   0
  52. Connection::firstNeuronIs(Neuron )                7     4     9     4      13     28  2.13      45       157   2   2    8     2   0
  53. Connection::secondNeuronIs(Neuron )               7     4     9     4      13     28  2.13      45       157   2   2    7     2   0
  54.  
  55. Number of functions in this file: 7
  56.  
  57. 10/1/1990                                                                                                              Page:  4
  58. PC-METRIC (C++) Version 1.0
  59. Complexity Report by Function for: C:\TC\BIN\FINAL\NEURAL.CPP
  60. -------------------------------------------------------------
  61.  
  62. Function                                   FT    n1    n2    N1    N2       N     N^   P/R       V         E VG1 VG2  LOC   <;>  SP
  63. ------------------------------------------ -- ----- ----- ----- ----- ------- ------ ----- ------- --------- --- --- ---- ----- ---
  64. main(int char )                                  37    13   113    35     148    241  1.63     835     41604   7   7   44    26   7
  65.  
  66. Number of functions in this file: 1
  67.  
  68. 10/1/1990                                                                                                              Page:  5
  69. PC-METRIC (C++) Version 1.0
  70. Complexity Report by Function for: C:\TC\BIN\FINAL\PATTERN.CPP
  71. --------------------------------------------------------------
  72.  
  73. Function                                   FT    n1    n2    N1    N2       N     N^   P/R       V         E VG1 VG2  LOC   <;>  SP
  74. ------------------------------------------ -- ----- ----- ----- ----- ------- ------ ----- ------- --------- --- --- ---- ----- ---
  75. Pattern::getMem(int int )                        13     7    31    11      42     68  1.61     182      1854   3   3   16     7   1
  76.  
  77. Number of functions in this file: 1
  78.  
  79. 10/1/1990
  80. PC-METRIC (C++) Version 1.0
  81. Summary Complexity Report for: C:\TC\BIN\FINAL\NEURON.RPT
  82. ---------------------------------------------------------
  83.  
  84. Unique Operators (n1):      77
  85. Unique Operands (n2):      128
  86. Total Operators (N1):     1124
  87. Total Operands (N2):       664
  88.  
  89. Software Science Length (N):                 1788
  90. Estimated Software Science Length (N^):      1379
  91. Purity Ratio (P/R):                          0.77
  92.  
  93. Software Science Volume (V):        13731
  94. Software Science Effort (E):      2742320
  95.  
  96. Estimated Errors using Software Science (B^):      4
  97. Estimated Time to Develop, in hours (T^):         42
  98.  
  99.  
  100. Cyclomatic Complexity (VG1):                63
  101. Extended Cyclomatic Complexity (VG2):       63
  102. Average Cyclomatic Complexity:               2
  103. Average Extended Cyclomatic Complexity:      2
  104.  
  105. Lines of Code (LOC):                       590
  106. Number of Comment Lines:                    26
  107. Number of Blank Lines:                      53
  108. Number of Executable Semi-colons (<;>):    238
  109. Number of Functions:                        28
  110.  
  111.  
  112. 10/1/1990                                                            Page:  1
  113. PC-METRIC (C++) Version 1.0
  114. Exception Report for Functions in C:\TC\BIN\FINAL\NETWORK.CPP
  115. -------------------------------------------------------------
  116.  
  117. Exception(s) for Function: Network::trainingFile
  118.   ** At 106 lines, this function is larger
  119.      than the standard of 60 lines
  120.   ** At 69 semicolons, this function is larger
  121.      than the standard of 50 semicolons
  122.   ** With a Cyclomatic Complexity of 21 this
  123.      function exceeds the standard of 10
  124.   ** With an Extended Cyclomatic Complexity of 21
  125.      this function exceeds the standard of 15
  126.   ** With an Average Maximum Span of Reference of 11
  127.      this function exceeds the standard of 10
  128.  
  129. //I plead guilty.  This is really a dog of a function and I would like to
  130. //change it.  My idea would be to break the function and data files into
  131. //two separate processes.  One for the parameters and another
  132. //for the pattern data.  
  133.  
  134.  
  135.  
  136. 10/1/1990                                                            Page:  2
  137. PC-METRIC (C++) Version 1.0
  138. Exception Report for Functions in C:\TC\BIN\FINAL\CONNECTI.CPP
  139. --------------------------------------------------------------
  140.  
  141.  
  142. 10/1/1990                                                            Page:  3
  143. PC-METRIC (C++) Version 1.0
  144. Exception Report for Functions in C:\TC\BIN\FINAL\NEURAL.CPP
  145. ------------------------------------------------------------
  146.  
  147.  
  148. 10/1/1990                                                            Page:  4
  149. PC-METRIC (C++) Version 1.0
  150. Exception Report for Functions in C:\TC\BIN\FINAL\PATTERN.CPP
  151. -------------------------------------------------------------
  152.  
  153.