Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #1960

histogram : without using commanade "smooth freq"

Newsgroups comp.graphics.apps.gnuplot
Date 2013-08-11 16:29 -0700
Message-ID <e0059ccb-ef28-4df1-9e19-a66392495f49@googlegroups.com> (permalink)
Subject histogram : without using commanade "smooth freq"
From "D.GH" <dariush.ghorbanzadeh@gmail.com>

Show all headers | View raw


Hello,
 
I have a data file that contains one column like this:
 
1120
1160
963
....

I would like to build the histogram (without using commanade "smooth freq" of GNUPLOT) of these data with a number of intervals (n_bins) that varies.

I used the command "stats" of gunplot for the corresponding data statistics

stats 'mydata.dat'  u 1  name "XX"

To construct the histogram, the data are divided into n_bins intervals as follows:

            XX_min+((XX_max-XX_min)*k)/n_bins

where k belongs to the set {0,1, ... , n_bins}.

This method can be (n_bins+1) Extremities of  intervals I_1,I_2, ..., I_{n_bins} .

My problem N°1: I do not know how to define what k in {0,1, ... , N_bins} vector (with specific commands to GNUPLOT).

 My problem  N°2: How to count the data that is in each interval Ij (j = 1, ... n_bins)
 
Any ideas ?
 
Thank you

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar | Unroll thread


Thread

histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-11 16:29 -0700
  Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-12 08:10 +0200
    Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-12 15:35 -0700
      Re: histogram :  without using commanade "smooth freq" Karl <ratzsch@polymer.uka.de> - 2013-08-13 09:37 +0200
        Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-13 06:45 -0700
        Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-13 10:48 -0700
          Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 16:27 +0200
            Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-14 08:46 -0700
              Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 18:48 +0200
              Re: histogram :  without using commanade "smooth freq" Karl <mail.kfr@gmx.net> - 2013-08-14 18:54 +0200
                Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-14 18:05 -0700
                Re: histogram :  without using commanade "smooth freq" "D.GH" <dariush.ghorbanzadeh@gmail.com> - 2013-08-15 16:00 -0700
                Re: histogram :  without using commanade "smooth freq" sfeam <sfeam@users.sourceforge.net> - 2013-08-15 17:18 -0700
      Re: histogram :  without using commanade "smooth freq" Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2013-08-13 22:35 +0200

csiph-web