X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fmath%2Ffactor-stats.c;h=a97d7f09349b7fabe25c49383357f87103205ac7;hb=5ee84736663824fe12474b78dace867e42893a14;hp=fd4d91d04df1a4a3267671b795d0f4ae703c850d;hpb=ade89522516fe8cc47299d8da6e28e129d96de94;p=pspp-builds.git
diff --git a/src/math/factor-stats.c b/src/math/factor-stats.c
index fd4d91d0..a97d7f09 100644
--- a/src/math/factor-stats.c
+++ b/src/math/factor-stats.c
@@ -1,29 +1,25 @@
-/* PSPP - A program for statistical analysis . -*-c-*-
+/* PSPP - a program for statistical analysis.
+ Copyright (C) 2004 Free Software Foundation, Inc.
-Copyright (C) 2004 Free Software Foundation, Inc.
-Author: John Darrington 2004
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License as
-published by the Free Software Foundation; either version 2 of the
-License, or (at your option) any later version.
+ 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.
-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. */
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see . */
#include
#include "factor-stats.h"
+#include
#include
#include
#include
-#include
#include "moments.h"
#include "percentiles.h"
@@ -33,6 +29,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
#include
#include "histogram.h"
+#include "xalloc.h"
void
metrics_precalc(struct metrics *m)
@@ -76,11 +73,9 @@ metrics_calc (struct metrics *fs, const union value *val,
moments1_add(fs->moments, x, weight);
-
if ( x < fs->min) fs->min = x;
if ( x > fs->max) fs->max = x;
-
wv = (struct weighted_value **) hsh_probe (fs->ordered_data,(void *) val );
if ( *wv )