X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Ffriedman.c;h=5ef3083f62f183920c4aaf2409e60ec4471c5dcc;hb=80788c833f111c2e9aef3e25bdb44d6a56423313;hp=9711167b1d3a0ef8fea3d8600c614f4375873ea5;hpb=5f53ffc9e8e493bb9a0959a9442d839f76fa39ce;p=pspp diff --git a/src/language/stats/friedman.c b/src/language/stats/friedman.c index 9711167b1d..5ef3083f62 100644 --- a/src/language/stats/friedman.c +++ b/src/language/stats/friedman.c @@ -1,5 +1,5 @@ /* PSPP - a program for statistical analysis. -*-c-*- - Copyright (C) 2010 Free Software Foundation, Inc. + Copyright (C) 2010, 2011 Free Software Foundation, Inc. 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 @@ -17,20 +17,19 @@ #include -#include "friedman.h" +#include "language/stats/friedman.h" #include #include -#include - -#include -#include -#include -#include -#include -#include - +#include "data/casereader.h" +#include "data/dataset.h" +#include "data/dictionary.h" +#include "data/format.h" +#include "data/variable.h" +#include "libpspp/message.h" +#include "libpspp/misc.h" +#include "output/tab.h" #include "gettext.h" #define _(msgid) gettext (msgid) @@ -202,6 +201,8 @@ friedman_execute (const struct dataset *ds, fr.w /= pow2 (fr.cc) * (pow3 (ost->n_vars) - ost->n_vars) - fr.cc * sigma_t; } + else + fr.w = SYSMIS; show_ranks_box (ost, &fr); show_sig_box (ost, &fr); @@ -211,7 +212,6 @@ friedman_execute (const struct dataset *ds, -#include static void show_ranks_box (const struct one_sample_test *ost, const struct friedman *fr)