/*
gbdist (ver. 5.6) -- Produce cumulative distribution from data
Copyright (C) 2000-20014 Giulio Bottazzi
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
(version 2) as published by the Free Software Foundation;
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include "tools.h"
/* this is the unbiased version of the empirical distribution
function. Indeed if x_k is the k-th largest observation, that is
k-1 are smaller and n-k larger, then E[F(x_k)]=k/(N+1)
*/
void printdist(double const *data,int const size,int const o_reverse, int const o_identical){
size_t i;
if(o_identical){
/* print one point for any observed value */
if(!o_reverse){
for(i=0;i