pkstatascii(1)

πŸ’– pkstatascii(1) πŸ’–

okay bestie, gather round, because this is the pkstatascii manual page and she is lowkey iconic πŸŽ€ it lives in section 1 of the manual (the "type it in your terminal" section, iykyk) and she is about to become your new best friend for crunching numbers out of boring text files.


✨ NAME ✨

pkstatascii β€” a program to calculate basic statistics from a text file 🧚


🌸 SYNOPSIS 🌸

pkstatascii -i input [-c column] [options] [advanced options]

πŸ¦‹ DESCRIPTION πŸ¦‹

pkstatascii calculates basic statistics of a data series in a text file. that's it. that's the whole vibe. you hand her a file, she hands you numbers. slay πŸ’…


πŸ‘‘ OPTIONS πŸ‘‘

  • -i filename, --input filename β€” name of the input text file πŸ“„ (the one thing she genuinely needs from you, no cap)
  • -size, --size β€” sample size
  • -rnd number, --rnd number β€” generate random numbers 🎲
  • -dist function, --dist function β€” distribution for generating random numbers, see http://www.gn/software/gsl/manual/gsl-ref_toc.html#TOC320 (only uniform and Gaussian supported yet πŸ™ˆ)
  • -rnda value, --rnda value β€” first parameter for random distribution (mean value in case of Gaussian)
  • -rndb value, --rndb value β€” second parameter for random distribution (standard deviation in case of Gaussian)
  • -mean, --mean β€” calculate mean
  • -median, --median β€” calculate median
  • -var, --var β€” calculate variance
  • -stdev, --stdev β€” calculate standard deviation
  • -skew, --skewness β€” calculate skewness
  • -kurt, --kurtosis β€” calculate kurtosis
  • -sum, --sum β€” calculate sum of column
  • -mm, --minmax β€” calculate minimum and maximum value
  • -min, --min β€” calculate minimum value
  • -max, --max β€” calculate maximum value
  • -hist, --hist β€” calculate histogram πŸ“Š
  • -hist2d, --hist2d β€” calculate 2-dimensional histogram based on two columns
  • -nbin value, --nbin value β€” number of bins to calculate histogram
  • -rel, --relative β€” use percentiles for histogram to calculate histogram
  • -kde, --kde β€” Use Kernel ⟨http://pktools.nongnu.org/html/classKernel.html⟩ density estimation when producing histogram. The standard deviation is estimated based on Silverman's rule of thumb ✨
  • -cor, --correlation β€” calculate Pearson product-moment correlation coefficient between two columns (defined by -c <col1> -c <col2>)
  • -rmse, --rmse β€” calculate root mean square error between two columns (defined by -c <col1> -c <col2>)
  • -reg, --regression β€” calculate linear regression between two columns and get correlation coefficient (defined by -c <col1> -c <col2>)
  • -regerr, --regerr β€” calculate linear regression between two columns and get root mean square error (defined by -c <col1> -c <col2>)
  • -v level, --verbose level β€” verbose mode when positive πŸ—£οΈ

πŸ’… Advanced options πŸ’…

okay these ones are for when you're feeling main character energy ✨

  • -src_min value, --src_min value β€” start reading source from this minimum value
  • -src_max value, --src_max value β€” stop reading source from this maximum value
  • -fs separator, --fs separator β€” field separator.
  • -r startrow [-r endrow], --range startrow [--range endrow] β€” rows to start/end reading. Use -r 1 -r 10 to read first 10 rows where first row is header. Use 0 to read all rows with no header. 🫢
  • -o, --output β€” output the selected columns
  • -t, --transpose β€” transpose input ascii vector (use in combination with --output)
  • -comment character, --comment character β€” comment character

bestie note: -c shows up all over the correlation/regression/rmse options even though she's not listed as her own bullet β€” that's just how she rolls here, no cap πŸ’€

and that's the whole page, periodt πŸ’œ this gorgeous thing is dated 01 January 2025 and she reps the pkstatascii(1) manual like the queen she is πŸ‘‘ go forth and calculate, bestie 🌈⭐

πŸ“¦ where this page comes from