Generate a test-recent function that has a desired window and shadow period that satisfies the shape assumption of the snapshot estimator.

getTestRecentFunc(window, shadow)

Arguments

window

Window period (in days)

shadow

Shadow period (in days)

Value

A test-recent function of t

Examples


phi <- getTestRecentFunc(window=200, shadow=191)