hellabites
Joined 12 years ago
Joined 12 years ago
Everybody has there own style, but I would prefer to print the missing file pattern and avoid loops.
If you have GNU parallel installed (works in bash)
parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: $(jot -w %04d_A.csv - 1 501)
or if preferred parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: {0001..0500}_A.csv for k in $(seq -f %04.f 1 501); do
f="${k}_A.csv"
! [[ -f "$f" ]] && echo $f || :
done
or more succinctly, for k in {0001..0501}_A.csv; do
! [[ -f "$f" ]] && echo $f || :
done
and if you have GNU parallel installed: parallel -kj1 '! [[ -f "{}" ]] && echo {} || :' ::: {0001..0501}_A.csvThe bitcoin blockchain is also immutable.
If you don't have a nearly symmetric span of x values, you may need to do extrapolation to obtain one, which may be difficult.
I brought up Fourier analysis not as a means to replace the decomposition described in the blog, but to connect it. I think it's neat that Fourier transformations can be viewed as a parity decomposition.
[I think it's neat that] for sufficiently smooth and periodic data, a Fourier transform will do exactly this (decompose a function into its even and odd parts)!
KH Instabilities give rise to gravity waves.
From the first paragraph of the wiki-page:
In fluid dynamics, gravity waves are waves generated in a fluid medium or at the interface between two media when the force of gravity or buoyancy tries to restore equilibrium. An example of such an interface is that between the atmosphere and the ocean, which gives rise to wind waves.