Learn R Programming

RGeode (version 0.1.0)

p: Threshold probability (p(t))

Description

The decreasing function for the adptive puning.

Usage

p(t, c0, c1)

Arguments

t

int The current iteration at which the probability of an adaption is calculated.

c0

double Additive constant at the exponent-

c1

double Multiplicative constant at the exponent.

Value

p returns the threshold of interest:

p(t)

double It is p(t)= \(exp{c0+c1*t}\).

References

  • [1] A. Canale, D. Dunson, Y. Wang. "Scalable Geometric Density Estimation" (2016). (available at https://arxiv.org/abs/1410.7692). The implementation of rgammatr is inspired to the Matlab implementation of rexptrunc by Ye Wang.

Examples

Run this code
# NOT RUN {
t = 10
c0= -1
c1= 10

p(t, c0, c1)
# }

Run the code above in your browser using DataLab