spf {PWEALL} | R Documentation |
A utility function
Description
A utility function to calculate a ratio.
Usage
spf(x=seq(-1,1,by=0.2),eps=1.0e-3)
Arguments
x |
A vector |
eps |
tolerance |
Details
This is to calculate
This function is well defined even when x=0. However, it is numerical chanllenging to calculate it when x is small. So when
we approximate this function and the absolute error is
.
Value
fx1 |
when |
fx2 |
when |
fx3 |
when |
Note
Version 1.0 (7/19/2016)
Author(s)
Xiaodong Luo
References
Luo, et al. (2017)
Examples
fun<-spf(x=seq(-1,1,by=0.2),eps=1.0e-3)
fun
[Package PWEALL version 1.3.0.1 Index]