Xgen | R Documentation |
This function is used to create the designmatrices needed in RobPer
to fit periodic functions. See RobPer
or Thieler, Fried and Rathjens (2016) for Details.
Xgen(tt, n, s, pp, design, steps = 10)
tt |
real-valued vector of length |
n |
integer: Sample size. |
s |
numeric vector of length |
pp |
positive number: Trial period. |
design |
character string: Shape of the periodic function to be fitted, possible choices are |
steps |
Number of steps for the step functions |
numeric matrix: Designmatrix.
A former version of this function is used in Thieler et al. (2013).
Anita M. Thieler and Jonathan Rathjens
Thieler, A. M., Backes, M., Fried, R. and Rhode, W. (2013): Periodicity Detection in Irregularly Sampled Light Curves by Robust Regression and Outlier Detection. Statistical Analysis and Data Mining, 6 (1), 73-89
Thieler, A. M., Fried, R. and Rathjens, J. (2016): RobPer: An R Package to Calculate Periodograms for Light Curves Based on Robust Regression. Journal of Statistical Software, 69 (9), 1-36, <doi:10.18637/jss.v069.i09>
Applied in RobPer
, see FastTau
for an example.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.