search for: winddat

Displaying 1 result from an estimated 1 matches for "winddat".

Did you mean: winddata
2010 Apr 02
2
How to save a model in DB and retrieve It
...- c(0:25) kw_mm92 <- c(0,0,0,20,94,205,391,645,979,1375,1795,2000,2040) kw_mm92 <- c(kw_mm92, rep(2050, length(ms)-length(kw_mm92))) modelspline <- splinefun(ms, kw_mm92) kw <- abs(modelspline(wind_ms) - (wind_dg)*2 + (air_kgm3 - 1.15)*300 + rnorm(length(wind_ms))*10) #plot(wind_ms, kw) windDat <- data.frame(kw, wind_ms, air_kgm3, wind_dg) windDat[windDat$wind_ms < 3, 'kw'] <- 0 model <- loess(kw ~ wind_ms + air_kgm3 + wind_dg, data = windDat, enp.target = 10*5*3) #, span = 0.1) modX <- serialize(model, connection = NULL, ascii = T) Channel <- odbcConnect(&quot...