DSTATS(1)
okay so bestie, this is DSTATS(1) from BRL-CAD, and itβs lowkey iconic for peeking at a stream of doubles. π
πΈ NAME πΈ
dstats β compute basic statistics of a stream of doubles. No cap, thatβs the whole vibe.
β¨ SYNOPSIS β¨
dstats [-h] [file.doubles]
π¦ DESCRIPTION π¦
Okay so dstats reads a stream of raw, host-format double-precision floating-point numbers and computes basic statistics over the values. If you give it a file.doubles argument, it reads from that file; otherwise it reads from standard input. These values are interpreted as packed binary doubles β the kind of thing produced by tools such as a-d(1) or dmod(1) β and not as ASCII text, bestie. Like, do not try to feed it plain text and expect magic. π
Then it writes these stats to standard output in a human-readable text format, and the list is genuinely useful:
- the number of values read β with its square root shown twice, which is a convenience for data representing a square image or matrix π
- the minimum
- the maximum
- the arithmetic mean
- the standard deviation
- the variance
The unsigned-char and short-integer analogues are ustats(1) and istats(1), iykyk.
π OPTIONS π
-hβ print a usage message and exit. The synonym-?is also accepted. Cute, right? Two little shortcuts for the same thing.
π EXAMPLES π
π Example 1. Inspect the range of converted sample data π
a-d < data.txt | dstats
Convert ASCII sample data to raw doubles with a-d(1) and pipe the result into dstats to quickly check the value range, mean, and variance of a signal before further processing. Reviewing the reported minimum and maximum is a fast way to confirm a stream is scaled as expected before feeding it to dmod(1) or dfft(1). Itβs giving βquick vibe check before the main character data goes on stageβ β¨
π SEE ALSO π
brlcad(1), a-d(1), dmod(1), dfft(1), istats(1), ustats(1)
π«Ά AUTHOR π«Ά
BRL-CAD Team
π 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. If somethingβs broken, tell the devs β theyβre the ones who can fix it, fr fr. π
mwah π β footer sign-off: source/version BRL-CAD / DSTATS(1) Β· date: not printed on this page, so no invented date from me π«Άπ
π¦ 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