Thanks for maintaining gsl; I use it all the time.
The gsl-randist(1) page suggest the sample command
gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200
which has a typo: gsl-histogram interprets the -100 as an option. It should read
gsl-randist 0 10000 cauchy 30 | gsl-histogram -- -100 100
200 > histogram.dat
or even
gsl-randist 0 100000 cauchy 30 | gsl-histogram -- -100 100
200 | awk '{print $1, $3 ; print $2, $3}' | graph -T X
Cheers,
On 12 November 2018 at 01:40, Barak A. Pearlmutter wrote:
| Package: gsl-bin
| Version: 2.5+dfsg-5
|
| Thanks for maintaining gsl; I use it all the time.
My pleasure, and "anytime" -- I get a lot of use out of your packaging too :)
| The gsl-randist(1) page suggest the sample command
|
| gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200
| > histogram.dat
|
| which has a typo: gsl-histogram interprets the -100 as an option. It should read
|
| gsl-randist 0 10000 cauchy 30 | gsl-histogram -- -100 100
| 200 > histogram.dat
|
| or even
|
| gsl-randist 0 100000 cauchy 30 | gsl-histogram -- -100 100
| 200 | awk '{print $1, $3 ; print $2, $3}' | graph -T X
Thanks -- seems plainly upstream. I have another issue for them (they named a
struct element 'class' or something like that upsetting C++ use) and maybe
Patrick can fix that for the next release.
Cheers, Dirk
On 12 November 2018 at 01:40, Barak A. Pearlmutter wrote:
| Package: gsl-bin
| Version: 2.5+dfsg-5
|
| Thanks for maintaining gsl; I use it all the time.
My pleasure, and "anytime" -- I get a lot of use out of your packaging too :)
| The gsl-randist(1) page suggest the sample command
|
| gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200
| > histogram.dat
|
| which has a typo: gsl-histogram interprets the -100 as an option. It should read
|
| gsl-randist 0 10000 cauchy 30 | gsl-histogram -- -100 100
| 200 > histogram.dat
|
| or even
|
| gsl-randist 0 100000 cauchy 30 | gsl-histogram -- -100 100
| 200 | awk '{print $1, $3 ; print $2, $3}' | graph -T X
Thanks -- seems plainly upstream. I have another issue for them (they named a
struct element 'class' or something like that upsetting C++ use) and maybe
Patrick can fix that for the next release.
Cheers, Dirk
Great, thanks.
If they're open to suggestions for more examples, I use the below when
teaching matrix decomposition methods (Principle Components Analysis,
Independent Components Analysis, Nonnegative Matrix Factorization) in
Machine Learning. It's way more fun to actually see something
calculated from scratch, and be able to fiddle with it and get an
intuition, than to just see a canned figure.
paste <(gsl-randist 0 30000 exppow 1 2) <(gsl-randist 1 30000 exppow
1 2) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X --line-mode 0
--bitmap-size 1024x1024
paste <(gsl-randist 0 30000 exppow 1 0.7) <(gsl-randist 1 30000
exppow 1 0.7) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X
--line-mode 0 --bitmap-size 1024x1024
paste <(gsl-randist 0 30000 exppow 1 8) <(gsl-randist 1 30000 exppow
1 8) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X --line-mode 0
--bitmap-size 1024x1024
Great, thanks.
If they're open to suggestions for more examples, I use the below when
teaching matrix decomposition methods (Principle Components Analysis,
Independent Components Analysis, Nonnegative Matrix Factorization) in
Machine Learning. It's way more fun to actually see something
calculated from scratch, and be able to fiddle with it and get an
intuition, than to just see a canned figure.
paste <(gsl-randist 0 30000 exppow 1 2) <(gsl-randist 1 30000 exppow
1 2) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X --line-mode 0
--bitmap-size 1024x1024
paste <(gsl-randist 0 30000 exppow 1 0.7) <(gsl-randist 1 30000
exppow 1 0.7) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X
--line-mode 0 --bitmap-size 1024x1024
paste <(gsl-randist 0 30000 exppow 1 8) <(gsl-randist 1 30000 exppow
1 8) | awk '{print $1+0.8*$2, $2+0.3*$1}' |graph -T X --line-mode 0
--bitmap-size 1024x1024
On 12 November 2018 at 10:19, Dirk Eddelbuettel wrote:
|
| On 12 November 2018 at 01:40, Barak A. Pearlmutter wrote:
| | Package: gsl-bin
| | Version: 2.5+dfsg-5
| |
| | Thanks for maintaining gsl; I use it all the time.
|
| My pleasure, and "anytime" -- I get a lot of use out of your packaging too :)
|
| | The gsl-randist(1) page suggest the sample command
| |
| | gsl-randist 0 10000 cauchy 30 | gsl-histogram -100 100 200
| | > histogram.dat
| |
| | which has a typo: gsl-histogram interprets the -100 as an option. It should read
| |
| | gsl-randist 0 10000 cauchy 30 | gsl-histogram -- -100 100
| | 200 > histogram.dat
| |
| | or even
| |
| | gsl-randist 0 100000 cauchy 30 | gsl-histogram -- -100 100
| | 200 | awk '{print $1, $3 ; print $2, $3}' | graph -T X
|
| Thanks -- seems plainly upstream. I have another issue for them (they named a
| struct element 'class' or something like that upsetting C++ use) and maybe
| Patrick can fix that for the next release.
Sorry, took a moment but this is now applied -- and had been reported upstream.
Thanks again, Dirk