bug-gsl
[Top][All Lists]
Advanced

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

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


From: Patrick Alken
Subject: Re: [Bug-gsl] Bug when using gsl-histogram !
Date: Fri, 19 Feb 2016 14:11:23 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Yes this is a known issue with the command line arguments. As a workaround you can try:

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


with an extra "--" inserted after gsl-histogram

On 02/19/2016 04:52 AM, Majalee Aaditya (ಮಜಲೀ ಆದಿತ್ಯ) wrote:
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]