Coder Social home page Coder Social logo

hydromad's People

Contributors

floybix avatar josephguillaume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hydromad's Issues

runoffratio.sim nrow(DATA)<width?

Should width be scaled down, or is current error acceptable?
runoffratio.sim is called with default arguments by armax.inverse.fit without the possibility of overriding width

sim functions: compiled_code = TRUE

sim functions: compiled_code = TRUE

remove reference to hydromad.getOption("pure.R.code")
because the sim functions should ideally stand alone and not depend on the rest of the package.

CMD 2-segment form

CMD 2-segment form

dU/dP=(1−n)[1−f1(M)]+n[1−f2(M)]
where
f(x) = min[1, x/d] and f2(x) = min[1, x/d2]

defaults
d2 = d * 2, n = 0.1

simplify xyplot cases for hydromad and runlist

simplify xyplot cases for hydromad and runlist

can use xyplot.list(runlist) for juxtapose

can use
xyplot(residuals(runlist), superpose = TRUE)
for superposed residuals -- but loses zoo time frame

can use
xyplot(fitted(runlist), superpose = TRUE) +
layer(llines(observed(runlist[[1]])))
for superposed fits with observed

and
c(..., xyplot(observed(hmad, item = "P"), type = "h"))
for rainfall
(but need to fix up auto.key)

tests tests tests

  • expuh fitting
  • lambda simulation and fitting
  • runoffratio
  • cmd, cwi
  • sacramento
  • events...
  • etc

keep zoo attributes in model results

would be good to keep original zoo attributes of DATA in results from residuals / fitted / predict / observed

but might this sometimes cause problems?

probably need to call coredata() or as.ts() in summary, during fitting, etc.

defineFeasibleSet()

defineFeasibleSet() with options to keep all sims within x% of values / events

glue quantiles using Hmisc::wtd.quantile as an option in predict()

sma.intensity

sma.intensity

U <- (P ^ power) ?
should limit U <= P

window.hydromad() ?

window.hydromad() ?

not just update(, newdata = window(...)): want to take a subset of a larger simulation without resetting the initial conditions.

for plotting: should be able to just use xlim.

generalise eventseq

allow multiple thresholds in eventseq -- or is interaction() enough?

allow a 'ulow' level for event separation / termination

skip = FALSE or extend = TRUE to change behaviour of mindur...

buildTsLikelihood()

buildTsLikelihood()

aggregation + transformation +
specify assumed error distribution?

IHACRES CWI warning

IHACRES CWI warning - non-physical process representation - beware climate change simulation

init X for armax/expuh is limited to 1 time-step

This is suitable for n=1, and doesn't matter if warmup>0

armax.sim works fine, but hydromad treats length(init)>1 as an unspecified parameter.

armax.sim(U=c(1,rep(0,20)),a_1=0.1,a_2=0.1,b_0=1,init=as.numeric(Murrindindi$Q[1:2]))
armax.sim(U=c(1,rep(0,20)),a_1=0.1,a_2=0.1,b_0=1,init=as.numeric(Murrindindi$Q[1]))

multibucket model(s)

multibucket model(s), following on from bucket.sim(), maybe Xinanjiang type model?

revise terminology

r.squared --> NSE
r.sq.sqrt --> NSE_sqrt
r.sq.log --> NSE_log
fitStat --> NSE
ARMAX --> ARMAX type

allow multiple outputs from routing

Currently, only routing functions that return only X will work.
Would ideally like to allow multiple (related) outputs, e.g.

  • Xs and Xq from return_components=T in cmd.sim
  • groundwater levels
  • stage

This could be done by providing an additional OUTPUT variable, which could be referred to in the objective function.

This would allow hydromad to be used without producing X at all. This might break some other functions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.