aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ministat
Commit message (Collapse)AuthorAgeFilesLines
* ministat: Consistently use item count as the first argument to callocJohn Baldwin2024-11-291-3/+3
| | | | | | | | Reported by: GCC 14 -Wcalloc-transposed-args Reviewed by: rlibby, emaste Differential Revision: https://reviews.freebsd.org/D46011 (cherry picked from commit a971c60456223b22c0b3c557d712b36660dbcff9)
* Remove $FreeBSD$: one-line bare tagWarner Losh2023-08-231-1/+0
| | | | | | | Remove /^\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit 05248206f720)
* Remove $FreeBSD$: two-line nroff patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/ Similar commit in main: (cherry picked from commit fa9896e082a1)
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-234-4/+0
| | | | | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/ Similar commit in main: (cherry picked from commit d0b2dbfa0ecf)
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* Minor cleanups to allow handing vast datasets.Poul-Henning Kamp2020-02-031-24/+29
| | | | | | | Submitted by: dds Notes: svn path=/head/; revision=357465
* Improve the way we calculate variance to reduce the rounding errorsPoul-Henning Kamp2019-10-181-22/+39
| | | | | | | | | | | when variance is small relative to data points. Now [0, 1, 2] shows same standard deviation as [10000000000000, ...1, ...2] Also: Various nitpickery from my own tree. Notes: svn path=/head/; revision=353718
* Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.Mariusz Zaborski2018-06-191-1/+1
| | | | | | | No functional change intended. Notes: svn path=/head/; revision=335395
* ministat: disallow negative variance / nan StddevEd Maste2018-02-211-0/+6
| | | | | | | | | | | | | | | | | With all values identical it was possible for Var() to return a negative value due to limited floating point precision, resulting in "nan" reported as Stddev. Variance cannot actually be negative, so just return 0. We can later investigate alternate algorithms for calculating variance to reduce the effect of catastrophic cancellation here. Reported by: Arshan Khanifar <arshankhanifar_gmail.com> Approved by: phk Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=329723
* SPDX: use the Beerware identifier.Pedro F. Giffuni2017-11-301-1/+3
| | | | Notes: svn path=/head/; revision=326408
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-05-091-0/+1
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=318000
* ministat(1): CapsicumifyConrad Meyer2016-12-161-24/+39
| | | | | | | | | | | | | Separate dataset opening from reading/parsing. The number of input files is already capped to a small number, so just open all input files before sandboxing. Feedback from: allanjude@ (earlier version), emaste@ (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D7925 Notes: svn path=/head/; revision=310141
* Reduce the bogosity of ministat's % difference calculations.Colin Percival2016-11-051-1/+7
| | | | | | | | | | | | | | | | | | | | | | The previous calculation used an approximation which was only valid in cases where the means being compared were similar; this resulted in very odd claims being made, e.g. that 0 +/- 0 is a difference of -100% +/- 1% from 100 +/- 1. The new calculation scales sample standard deviations by the means, and yields approximately correct percentage difference bounds providing that the reference population is bounded away from zero. (In the case where the values being compared are not sufficiently bounded away from zero, the distribution of ratios becomes much harder to calculate, and is not likely to be useful anyway.) Note that when ministat is used for its intended purpose of determining whether two samples are statistically different, this change is unlikely to have any noticeable effect; in such cases the means will be similar enough that the correction applied here will be minimal. Notes: svn path=/head/; revision=308329
* Compute the median of the data set as the midpoint between the two middleMarcelo Araujo2015-11-241-2/+4
| | | | | | | | | | | | values when the data set has an even number of elements. PR: 201582 Submitted by: Marcus Reid <marcus@blazingdot.com> Reviewed by: imp Approved by: bapt (mentor) Notes: svn path=/head/; revision=291231
* fix error message... errx since errno may not be set (if we didn'tJohn-Mark Gurney2015-07-151-1/+1
| | | | | | | | | | parse the full field), and err and errx add their own newline at the end... Sponsored by: Netflix, Inc. Notes: svn path=/head/; revision=285595
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-273-9/+9
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-281-2/+3
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | Sync with HEAD.David E. O'Brien2013-02-082-5/+13
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Clarify the ministat default widthKristof Provost2015-03-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The man page states that: '-w width Width of ASCII-art plot in characters, default is 74.' This is not entirely correct. The mini-help is more accurate: '-w : width of graph/test output (default 74 or terminal width)' In other words: the man page fails to explain that ministat will default to the terminal width, not 74. It will only fall back to 74 if stdout is not a TTY. Submitted by: Ben Hutchings <ben@decadent.org.uk> Approved by: philip (mentor) Notes: svn path=/head/; revision=280701
* | | | ministat(1): replace malloc + memset with calloc.Pedro F. Giffuni2015-02-171-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: phk Notes: svn path=/head/; revision=278928
* | | | Convert to usr.bin/ to LIBADDBaptiste Daroussin2014-11-251-4/+4
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275042
* | | Make ministat CRNL tolerant by stripping all isspace() from the tailPoul-Henning Kamp2014-03-121-2/+3
| |/ |/| | | | | | | | | | | end of input lines. Notes: svn path=/head/; revision=263077
* | Add option to suppress just the plot in ministat while still retainingEitan Adler2012-11-152-5/+13
|/ | | | | | | | | | the relative comparison (i.e., useful part). Approved by: cperciva MFC after: 3 days Notes: svn path=/head/; revision=243079
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-291-2/+2
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Add missing static keywords to ministat(1)Ed Schouten2011-11-061-2/+2
| | | | Notes: svn path=/head/; revision=227173
* Make the second example command more closely match the demo output, and asGavin Atkinson2010-06-271-2/+2
| | | | | | | | a side effect more clearly show the change in command lines between the first and second example invocations. Notes: svn path=/head/; revision=209555
* Fix some warns - mainly signedness and unused variables.David Malone2009-03-171-5/+3
| | | | Notes: svn path=/head/; revision=189934
* Free old arrays if we increase them.Poul-Henning Kamp2008-10-161-0/+1
| | | | | | | Pointed out by: mlaier Notes: svn path=/head/; revision=183961
* Make ministat(1) vastly faster on huge datasets.Poul-Henning Kamp2008-10-162-51/+36
| | | | Notes: svn path=/head/; revision=183960
* Fix apparent typo. The permitted confidence values include 95%, not 85%.Peter Wemm2008-03-121-1/+1
| | | | Notes: svn path=/head/; revision=177074
* WARNS fixes: remove two unused variables and add some constness.David Malone2008-02-081-4/+3
| | | | Notes: svn path=/head/; revision=176106
* Pull ministat into the installed system and write it a man-page.Poul-Henning Kamp2007-12-202-1/+130
| | | | | | | (Repocopied from src/tools/tools/ministat) Notes: svn path=/head/; revision=174810
* Improve input parsing:Poul-Henning Kamp2006-08-281-14/+36
| | | | | | | | | | | Add "-C <column>" and "-d <delims>" options to chop up input lines. Make '#' a comment character, rest of line is ignored. Submitted by: Dmitry Morozovsky <marck@rinet.ru> Notes: svn path=/head/; revision=161692
* Avoid coredumps if stddev cannot be computed (if all datapoints are identical)Poul-Henning Kamp2006-05-021-12/+16
| | | | | | | Small cleanup of label printing. Notes: svn path=/head/; revision=158246
* Fix the way in which median is calculated. If the data source has evenWojciech A. Koszek2006-02-231-7/+18
| | | | | | | | | | number of data points, value should be calculated by adding two middle elements and dividing them by 2. Approved by: cognet (mentor) Notes: svn path=/head/; revision=155960
* Add option -w to specify graph width.Matthew N. Dodd2006-02-221-3/+24
| | | | | | | | | Use COLUMNS, terminal width for default graph width. Reviewed by: rwatson Notes: svn path=/head/; revision=155894
* In 2003, a -s flag was added to ministat to separate thePoul-Henning Kamp2005-07-212-5/+8
| | | | | | | | | | | | | avg/median/stddev bars onto separate lines for readability if the ranges overlapped. In 2005, ministat was extended to support more than 2 datasets, but the -s code was not updated. It will coredump if run with -s and >2 sets. PR: 82909 Submitted by: Dan Nelson <dnelson@allantgroup.com> Notes: svn path=/head/; revision=148224
* dd a '-n' option to ministat, which causes it to display only summaryRobert Watson2005-05-271-9/+17
| | | | | | | | statistics, not graph and statistical test output. Useful for automated processing. Notes: svn path=/head/; revision=146689
* Add support for more than two datasets. Currently limited to 7 thoughMatthew N. Dodd2005-04-131-29/+29
| | | | | | | | | | | | the limit is only the number of meaningful graph symbols available. Statistical comparison is performed between the first dataset and any further datasets. No objection by: phk Notes: svn path=/head/; revision=144993
* Start the dreaded NOFOO -> NO_FOO conversion.Ruslan Ermilov2004-12-211-1/+1
| | | | | | | OK'ed by: core Notes: svn path=/head/; revision=139103
* For variables that are only checked with defined(), don't provideRuslan Ermilov2004-10-241-1/+1
| | | | | | | any fake value. Notes: svn path=/head/; revision=136910
* Added missing DPADD.Ruslan Ermilov2004-02-051-1/+1
| | | | Notes: svn path=/head/; revision=125500