A resource-allocating network for function interpolation