bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] Bug when using gsl-histogram !


From: ಮಜಲೀ ಆದಿತ್ಯ
Subject: [Bug-gsl] Bug when using gsl-histogram !
Date: Fri, 19 Feb 2016 17:22:59 +0530

Dear GSL Developers,

Version of GSL :
2.1 (Stable version) downloaded from ftp://ftp.gnu.org/gnu/gsl

Hardware & Operating System :
Intel Core i5, 3.2 GHz
Ubuntu 12.04.3 LTS

Compiler used, including version number
gcc, version 4.6 used to compile the GSL source code

Description of the bug behaviour :

Was trying out the gsl-randist using the given example in the GSL
documentation

$ gsl-randist 0 10000 cauchy 30 | sort -g | gsl-histogram -1e6 180000 1000

This gives an error :

gsl-histogram : invalid option -- '1'
Usage : gsl-histogram [-u] xmin xmax [n]
Computes a histogram of the data on stdin using n bins from xmin to xmax.
If n is unspecified then bins of integer width are used.
If -u is given, histogram is normalized so that sum of all bins is unity.

BUG:
The bug seems to be that the gsl-histogram is unable to take negative
values to "xmin" and is therefore thinking that "-1" from -1e6 is an option
and hence printing out the error. The same error is not given by GSL 1.15
where the -u option doesn't seem to be there.

*--*
*Thanks & Regards,*
*Aaditya Majalee*


reply via email to

[Prev in Thread] Current Thread [Next in Thread]