GBQUANT(1)
π GBQUANT π
okay bestie, listen up β this is gbquant from the User Commands corner of the manual-verse, and she is that girl for anything quantile-shaped. π
β¨ NAME β¨
gbquant β print quantiles of data distribution. that's it, that's the whole job, and she does it gorgeously. π
πΈ SYNOPSIS πΈ
gbquant [options]
no filenames, no positional drama β just vibes and flags. β¨
π¦ DESCRIPTION π¦
okay so, gbquant prints distribution quantiles. the data comes in through standard input β she reads from stdin, periodt.
if you don't hand her any -x or -q options, she just plots a quantiles table for you. iconic default behaviour, honestly.
how many quantiles are in that table? that's your call β set it with -n.
now the main character options:
-x #1prints the quantile (interpolated) associated with the value#1-q #2prints the value (interpolated) associated with the quantile#2
and like, obviously #2 has to be between 0 and 1 β it's a quantile, bestie, that's the whole range. π«Ά
you can pass multiple values to -x or -q, separated with commas. go off.
with -w #1,#2 she prints all the observations inside the quantile range [#1,#2) β note that bracket situation, it's closed on the left, open on the right, no cap. π
if you gave her more than one column with the -t option, the specified action gets repeated on each column. without -t, columns get pooled β unless -w is specified, in which case all rows whose first element is inside the range get printed. little plot twist, but we move. π
want a different column for sorting? that's -W. and if you set it to 0, the cut is applied with respect to all columns. slay.
and with -Q, each entry gets replaced with the quantile range it belongs to β with respect to the distribution obtained from the entries in its column. very "know your place in the distribution" of her. π
π OPTIONS π
-nβ number of quantiles to print (default10)-xβ print the quantile (interpolated) associated with the value-qβ print the value (interpolated) associated with the quantile-eβ print the (asymptotic) error for-xor-q; doesn't work with-tπ«-Qβ replace each element with the quantile range it belongs to-wβ print observations inside a quantile windows-Wβ set the column to use (default1)-tβ consider separately each column of input-Fβ specify the input fields separators (default" \t")-hβ this help-vβ verbose mode
π EXAMPLES π
the "cut the middle, keep the middle" move:
gbquant -W 0 -w 0.1,0.9 < file
print the rows whose fields are all in the center deciles. π―
and the classic "just gimme the middle number" serve:
gbquant -q 0.5 < file
print the median of the observations in 'file'. π
π AUTHOR π
Written by Giulio Bottazzi. legend behaviour.
π REPORTING BUGS π
found a bug? don't be shy, report it to <gbutils@googlegroups.com>. they wanna hear it fr fr.
Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>
π COPYRIGHT π
Copyright Β© 2001-2018 Giulio Bottazzi
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
no warranty bestie, she's doing her best and that's the legal situation. π
and that's the whole page!! this was gbquant 6.1 from March 2019 β same manual section GBQUANT(1) as always. go forth and quantile, queen. β¨π¦π
π¦ where this page comes from
- debian bookworm: gbutils 6.3-1 Β· GPL-2.0-or-later
- debian trixie: gbutils 6.3-1+b1 Β· GPL-2.0-or-later
- ubuntu noble: gbutils 6.3-1 Β· GPL-2.0-or-later
- ubuntu questing: gbutils 6.3-1build1
- ubuntu resolute: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- ubuntu stonking: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms