USGS-R / WREG

Develops regional estimation equations for streamflow characteristics that can be applied at a ungaged basins.
8 stars 7 forks source link

Optimize Omega.gls #47

Open tjmills opened 8 years ago

tjmills commented 8 years ago

Omega.gls runs very slow because of the many indexed FOR loops. At some point the code will need to be revised to either limit the amount of indexing in the loop or ideally vectorize the operation.

See this post for details on loops in R http://stackoverflow.com/questions/2908822/speed-up-the-loop-operation-in-r