Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed Dec 11, 2017
1 parent a73f122 commit 1bc51b6
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions experiments/data_syn.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# NORMAL
time_normal = np.arange(10000)
mag_normal = np.random.normal(size=10000)
error_normal = np.random.normal(loc=1, scale =0.008, size=10000)

mag_normal2 = np.random.normal(size=10000)
error_normal2 = np.random.normal(loc=1, scale =0.008, size=10000)

lc_normal = {
"time": time_normal,
"magnitude": mag_normal,
"error": error_normal,
"magnitude2": mag_normal2,
"aligned_time": time_normal,
"aligned_magnitude": mag_normal,
"aligned_magnitude2": mag_normal2,
"aligned_error": error_normal,
"aligned_error2": error_normal2}

# PERIODIC
import numpy as np
rand = np.random.RandomState(42)
time_periodic = 100 * rand.rand(100)
mag_periodic = np.sin(2 * np.pi * time_periodic) + 0.1 * rand.randn(100)

lc_periodic = {"time": time_periodic, "magnitude": mag_periodic}

# UNIFORM
lc_uniform = {
"time": np.arange(10000),
"magnitude": np.random.uniform(size=10000)}

0 comments on commit 1bc51b6

Please sign in to comment.