You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
228 B
ArmAsm
12 lines
228 B
ArmAsm
3 years ago
|
nrzest<-function(r, nr)
|
||
|
{
|
||
|
d <- c(1, diff(r))
|
||
|
dr <- c(0.5 * (d[-1] + d[ - length(d) ]), d[length(d)])
|
||
|
return(nr/dr)
|
||
|
}
|
||
|
|
||
|
rstest<-function(r, coef)
|
||
|
{
|
||
|
return(r * (1 + 1r)^(1 + coef[2]))
|
||
|
}
|