public double [ ] buildWeightMatrix ( double [ ] [ ] nodeMatrix , double [ ] [ ] bondMatrix ) { for ( int i = 0 ; i < nodeNumber ; i ++ ) { weight [ i + 1 ] = nodeMatrix [ i ] [ 0 ] ; for ( int j = 0 ; j < layerNumber ; j ++ ) { weight [ i + 1 ] += nodeMatrix [ i ] [ j + 1 ] * bondMatrix [ i ] [ j ] * Math . pow ( 10.0 , ( double ) - ( j + 1 ) ) ; } } weight [ 0 ] = 0.0 ; return weight ; }
Build weight array for the given node matrix and bond matrix .