code: def changeSize(self, newsize):
          
          # overwrites current data
          if newsize <= 0:
              raise LayerError('Layer size changed to zero.', newsize)
          minSize = min(self.size, newsize)
          bias = randomArray(newsize, self._maxRandom)
          Numeric.put(bias, Numeric.arange(minSize), self.weight)
          self.weight = bias
          self.size = newsize
          self.displayWidth = newsize
          self.targetSet = 0
          self.activationSet = 0
          self.target = Numeric.zeros(self.size, 'f')
          self.error = Numeric.zeros(self.size, 'f')
          self.activation = Numeric.zeros(self.size, 'f')
          self.dweight = Numeric.zeros(self.size, 'f')
          self.delta = Numeric.zeros(self.size, 'f')
          self.netinput = Numeric.zeros(self.size, 'f')
          self.wed = Numeric.zeros(self.size, 'f')
          self.wedLast = Numeric.zeros(self.size, 'f')
docs: Changes the size of the layer. Should only be called through
          Network.changeLayerSize().