projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
SORT CASES: Convert tests to Autotest framework.
[pspp-builds.git]
/
src
/
language
/
stats
/
binomial.c
diff --git
a/src/language/stats/binomial.c
b/src/language/stats/binomial.c
index bc87a94da3316b0c0cf0b99c0035092a7d93a8cb..3287509c982c3398dcee96a0e17eea4ea21b929d 100644
(file)
--- a/
src/language/stats/binomial.c
+++ b/
src/language/stats/binomial.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2006, 2009 Free Software Foundation, Inc.
+ Copyright (C) 2006, 2009
, 2010
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
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
@@
-16,7
+16,7
@@
#include <config.h>
#include <libpspp/compiler.h>
#include <config.h>
#include <libpspp/compiler.h>
-#include <output/tab
le
.h>
+#include <output/tab.h>
#include <data/format.h>
#include <data/case.h>
#include <data/format.h>
#include <data/case.h>
@@
-45,8
+45,6
@@
#include <minmax.h>
#include <minmax.h>
-#include <libpspp/hash.h>
-
static double calculate_binomial_internal (double n1, double n2,
double p);
static double calculate_binomial_internal (double n1, double n2,
double p);
@@
-91,8
+89,8
@@
static bool
do_binomial (const struct dictionary *dict,
struct casereader *input,
const struct binomial_test *bst,
do_binomial (const struct dictionary *dict,
struct casereader *input,
const struct binomial_test *bst,
- struct freq
_mutable
*cat1,
- struct freq
_mutable
*cat2,
+ struct freq *cat1,
+ struct freq *cat2,
enum mv_class exclude
)
{
enum mv_class exclude
)
{
@@
-160,7
+158,7
@@
binomial_execute (const struct dataset *ds,
const struct binomial_test *bst = (const struct binomial_test *) test;
const struct one_sample_test *ost = (const struct one_sample_test*) test;
const struct binomial_test *bst = (const struct binomial_test *) test;
const struct one_sample_test *ost = (const struct one_sample_test*) test;
- struct freq
_mutable
*cat[2];
+ struct freq *cat[2];
int i;
assert ((bst->category1 == SYSMIS) == (bst->category2 == SYSMIS) || bst->cutpoint != SYSMIS);
int i;
assert ((bst->category1 == SYSMIS) == (bst->category2 == SYSMIS) || bst->cutpoint != SYSMIS);
@@
-189,8
+187,6
@@
binomial_execute (const struct dataset *ds,
struct tab_table *table = tab_create (7, ost->n_vars * 3 + 1);
struct tab_table *table = tab_create (7, ost->n_vars * 3 + 1);
- tab_dim (table, tab_natural_dimensions, NULL, NULL);
-
tab_title (table, _("Binomial Test"));
tab_headers (table, 2, 0, 1, 0);
tab_title (table, _("Binomial Test"));
tab_headers (table, 2, 0, 1, 0);