DAUTO(1)
π DAUTO(1) β the dauto glow-up, bestie edition π
okay so real talk, dauto is that girl in the BRL-CAD friend group who does exactly one thing and does it flawlessly: she takes a stream of doubles and hands you back the unbiased autocorrelation function. no cap. let's get into it π
β¨ NAME β¨
dauto β computes the unbiased autocorrelation function of a stream of doubles. periodt. π
π¦ SYNOPSIS π¦
dauto [window_size] < input.doubles > output.doubles
likeβ¦ that's it. that's the whole vibe. β¨
πΈ DESCRIPTION πΈ
so here's the tea, bestie π β dauto reads a stream of double-precision floating-point numbers from standard input, computes an unbiased estimate of the autocorrelation function over successive fixed-size windows, and writes the resulting double-precision values out to standard output. iconic behavior, honestly.
input gets processed in non-overlapping records of window_size samples (default 512). for each record of L samples, dauto estimates the autocorrelation at lags 0 through L-1, writing L values per record. π«Ά
and here's the part where she's kind of a perfectionist: the estimate at lag 0 is based on all L samples, and the estimate at lag L-1 is based on only one β zeros are assumed outside the record. so the further out you go, the lonelier the lag gets π. the estimate is unbiased by scaling each lag by a factor inversely proportional to the number of contributing samples. math slay. π₯
a final partial record shorter than window_size gets zero-padded, so nothing gets left out. π§
β οΈ okay important: both standard input and standard output must be redirected. if either one is a terminal, dauto will straight up exit with a usage message. she does not do conversations at the terminal, she does pipes only, iykyk π
also psst β see dauto2(1) if you want the biased variant instead. different girl, similar energy. π
π OPTIONS π
window_sizeβ number of samples per record, and honestly it's the boss of the whole operation because it controls the maximum lag computed. must be a positive integer. defaults to512if you justβ¦ don't. π
π EXAMPLES π
Example 1. Autocorrelate a sampled signal π
dauto 1024 < signal.doubles > autocor.doubles
computes the unbiased autocorrelation of a stream of double-precision values in 1024-sample windows. and the resulting stream of doubles? oh she's versatile β you can feed it straight to dpeak(1) to locate the dominant periodicities in the signal. genuinely a collab for the ages. β
π₯ SEE ALSO π₯
brlcad(1), dauto2(1), damdf(1), dconv(1), dpeak(1)
(the whole squad π go say hi)
π«Ά AUTHOR π«Ά
BRL-CAD Team β legends, honestly.
π COPYRIGHT π
this software is Copyright (c) 1989β2026 by the United States Government as represented by U.S. Army Research Laboratory.
π BUG REPORTS π
reports of bugs or problems should be submitted via electronic mail to devs@brlcad.org π§ β pls be nice, they're doing their best.
and that's the whole page, bestie! brought to you by BRL-CAD, serving up DAUTO(1) realness. go forth and autocorrelate responsibly β¨π
π¦
π¦ where this page comes from
- nixpkgs unstable: brlcad 7.44.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms