Displaying 4 results from an estimated 4 matches for "yprime".
Did you mean:
prime
2003 May 16
2
Efficient subsetting
...i, I'm facing this problem quite a lot, so it seems worthwhile
to check to see what the most efficient solution is.
I've two vectors x (values ordered) and y. I've ranges
x < x0, x0 <= x < x1, x1 <= x < x2, x2 <= x < x3, x > xn
and want to construct a subvector yprime of y which consists
of the first/last value of y whose x values are in the range.
For example,
x y
1 2
1 3
2 3
3 4
4 5
5 6
and let's say the ranges are 1 <= x < 3 and 3 <= x < 5. I
should produce yprime as c( 2, 4 ) (if I ask for the first value
of y whose x is in...
2006 Nov 29
2
How to solve differential equations with a delay (time lag)?
...elay (time lag) term. I would like to use the "lsoda"
function "odesolve" package. However, I am not sure how to specify the
delay term using the syntax allowed by odesolve.
Here is an example of the kind of problem that I am trying to solve:
> library(odesolve)
yprime <- function(t, y, p) { # this function
yd1 <- p["k1"] *(t <= p["T"]) - p["k2"] * y[2]
yd2 <- p["k3"] * y[1](t - p["delay"]) - p["k4"] * y[2] # this is not
syntactically valid, but it is what I would like to do
list(c(yd1,...
2003 Nov 05
3
using LSODA in R
...*R)/(R+R0))-((w*xp*ypr*P*R)/(R02+((1-w)*C)+(w*R)))
Cprime <-
(-1*(xc*C)*(1-(yc*R)/(R+R0)))-(((1-w)*xp*ypc*P*C)/((w*R)+((1-w)*C)+C0))
Pprime <-
(-1*P)-(((1-w)*xp*ypc*C*P)/((w*R)+((1-w)*C)+C0))+((w*xp*ypr*P*R)/((w*R)+((1-w)*C)+R02))
list(c(Rprime, Cprime, Pprime))
}
The above is the function yprime which the documentation for the odesolve
says that I may specify.
Thanks for any help that anyone can provide.
Ivan Kautter
_________________________________________________________________
Compare high-speed Internet plans, starting at $26.95.
https://broadband.msn.com (Prices may vary by se...
2012 Jan 30
1
about changing line type and line width in Taylor Diagram
Dear all,
I am new to plotting Taylor Diagram using plotrix package within R, hence
this post. I have written a script which plots Taylor Diagram with one
reference and 7 model values. However the font size, line width and line
type are not clear when saving the diagram as a jpeg file. I tried the
functions lty, lwd and font but no apparent change. I am attaching the
script here. Any help would