sim.lc: Simulate Light Curve

Description Usage Arguments Value Author(s) Examples

View source: R/lctools.r

Description

Simulates a light curve from a given power spectrum

Usage

1
sim.lc(beta, bins = 1024, length = 1e+05, scale.factor = 1, shift.factor = 0)

Arguments

beta

required numeric: Slope of the PSD for the simulated light curve

bins

optional numeric: Number of data points for the simulated light curve, defaults to 1024

length

optional numeric: Observation length, in seconds, for the simulated light curve, defaults to 100000

scale.factor

optional numeric: Scaling factor for the simulated light curve, defaults to 1

shift.factor

optional numeric: Shift factor for the simulated light curve, defaults to 0

Value

Simulated light curve data frame with structure: TIME, TIMED, RATE

Author(s)

Derek Blue

Examples

1
2
3
4
## Not run: 
lightcurve <- sim.lc(lightcurve, 100)

## End(Not run)

Starkiller4011/AstroR documentation built on Aug. 24, 2020, 12:41 p.m.