uniform_log_util: Newton-Raphson algorithm for solving optimal log utiltiy...

Description Usage Arguments Details

View source: R/RcppExports.R

Description

For finding the root of the function h(x)=\log((1+bx)/(1+ax))/(b-a)-x.

Usage

1
uniform_log_util(interval, rate = 0, n = 500L)

Arguments

interval

the interval for the uniform distribution

rate

the risk-neutral rate

n

the number of iterations to take in the NR method.

Details

The algorithm is on wikipedia and quite straightforward.


shill1729/numerics documentation built on April 17, 2021, 6:46 p.m.