Commit 8b6afd8f authored by thomas.forbriger's avatar thomas.forbriger
Browse files

ts/croposp [WP]: start examples for incomplete incoherence

parent a3a85181
# this is <Makefile.inco>
# ----------------------------------------------------------------------------
#
# Copyright (c) 2020 by Thomas Forbriger (BFO Schiltach)
#
# test incomplete incoherence
#
# for time series of finite duration, the estimate of incoherence is obtained
# by averaging; consequently insufficient averaging produces an apparent level
# of coherency
#
# This Makefiles provides some tests to demonstrate the effect
#
# REVISIONS and CHANGES
# 01/10/2020 V1.0 Thomas Forbriger
#
# ============================================================================
#
# ======================================================================
# create time series
# ==================
#
# Several time series of normally distributed random samples with zero mean
# are computed with randomseries.
#
# We use the libgsl random number generators to produce white noise time
# series, which are as incoherent as possible. The recommended random number
# generator is ranlxd
#
# run
# randomseries -xhelp=gslrng
# to see comments
#
# set time series parameters
# --------------------------
# sampling interval
TS_DT=0.01
# number of samples
TS_N=1000000
#
# set random number generator type
# --------------------------------
# Choose:
RNGTYPE=ranlxd2
RNGSEED=0
# create to raw time series
rawseries.bin:
randomseries -v -o -t bin -rngtype $(RNGTYPE) -nseries 2 \
-nsamples $(TS_N) -dt $(TS_DT) -seed $(RNGSEED) \
-std 1. -mean 0. $@
# place the two time series in separate files
series1.bin series2.bin: \
%.bin: rawseries.bin
any2any --verb --over --itype bin --otype bin \
$@ $< t:$(patsubst series%.bin,%,$@)
# provide a time series plot to confirm incoherence
rawsig.ps: series1.bin series2.bin
stuplox -d $@/cps -s x -i -ty bin $^
# ----------------------------------------------------------------------
# previewer commands
# ------------------
%.pdp: %.pdf; evince $<; /bin/rm -fv $<
%.psp: %.ps; gv $<; /bin/rm -fv $<
# ----- END OF Makefile.inco -----
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment