Displaying 1 result from an estimated 1 matches for "tp3771705p3771705".
Did you mean:
tp3771705p3771902
2011 Aug 26
3
How to vectorize a function to handle two vectors
...instead
of values.
HestonCallVec <- function(phi, kVec, t)
{
mapply(function(k, t){Price_call(phi, k, t)})
}
HestonCallVec(phiHeston(subHeston), kV, tV)
# This should give 4 values
--
View this message in context: http://r.789695.n4.nabble.com/How-to-vectorize-a-function-to-handle-two-vectors-tp3771705p3771705.html
Sent from the R help mailing list archive at Nabble.com.