function ninety_histogram ( )

%*****************************************************************************80
%
%% NINETY_HISTOGRAM uses a histogram to find outliers in 90 data values.
%
%  Discussion:
%
%    Because the number of data points is fairly large, we hope that a 
%    histogram will show us whether any values are outliers.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    19 July 2018
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'NINETY_HISTOGRAM:\n' );
  fprintf ( 1, '  MATLAB/Octave version %s:\n', version ( ) );
  fprintf ( 1, '  Read a text file of 90 values, and create a histogram\n' );
  fprintf ( 1, '  that will expose outliers as isolated values.\n' );
%
%  Read TXT file, which has no headers, and only one column.
%
  data = load ( 'ninety_data.txt' );

  [ m, n ] = size ( data );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  %d x %d data records read from file.\n', m, n );
%
%  Create a histogram.
%
  bin_min = min ( data );
  bin_max = max ( data );
  bin_num = 8;
 
  [ bin_ave, bin_count ] = histogramize ( m, data, bin_min, bin_max, bin_num );

  bar ( bin_ave, bin_count );

  grid ( 'on' )
  xlabel ( '<-- Data Values -->', 'FontSize', 16 )
  ylabel ( '<-- Frequency -->', 'FontSize', 16 )
  title ( 'NINETY: Looking for Outliers', 'FontSize', 24 )

  pause ( 5 )
%
%  Save graphics in file.
%
  filename = 'ninety_histogram.png';
  print ( '-dpng', filename )
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'NINETY_HISTOGRAM:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  return
end
