Skip to content
Prev 271240 / 398498 Next

Reliability metric

I may be wrong, but I thought the original poster
was trying to make a matrix ('metric' sp.) of values,
R, so that
   R[i,j] == f(t[i], h[i])
for all i and j where
   f <- function(t, h)exp(-(t/eta*(1-h))^(beta*(1-h))
outer() would do that:
   R <- outer(t, h, function(t, h)exp(-(t/eta*(1-h))^(beta*(1-h))))
It dimensions are length(t) by length(h), 111 by 9, not the
110 by 10 mentioned in the post.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com