projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added linear regression
[pspp]
/
src
/
levene.c
diff --git
a/src/levene.c
b/src/levene.c
index 11e7480acfc115f436d6a81e6d7c336a933f5352..7877c7ec6aa5fc039efb7fbedff900096977c8a8 100644
(file)
--- a/
src/levene.c
+++ b/
src/levene.c
@@
-16,8
+16,8
@@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
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., 5
9 Temple Place - Suite 330
, Boston, MA
- 0211
1-1307
, USA. */
+ Foundation, Inc., 5
1 Franklin Street, Fifth Floor
, Boston, MA
+ 0211
0-1301
, USA. */
#include <config.h>
#include "levene.h"
#include <config.h>
#include "levene.h"
@@
-77,8
+77,7
@@
struct levene_info
enum lev_missing missing;
/* Function to test for missing values */
enum lev_missing missing;
/* Function to test for missing values */
- is_missing_func is_missing;
-
+ is_missing_func *is_missing;
};
/* First pass */
};
/* First pass */
@@
-202,7
+201,7
@@
levene_calc (const struct ccase *c, void *_l)
struct variable *v = l->v_dep[i];
const union value *val = case_data (c, v->fv);
struct variable *v = l->v_dep[i];
const union value *val = case_data (c, v->fv);
- if (l->is_missing
(val,v
) )
+ if (l->is_missing
(&v->miss, val
) )
{
return 0;
}
{
return 0;
}
@@
-225,7
+224,7
@@
levene_calc (const struct ccase *c, void *_l)
if ( 0 == gs )
continue ;
if ( 0 == gs )
continue ;
- if ( ! l->is_missing(
v,var
))
+ if ( ! l->is_missing(
&var->miss, v
))
{
levene_z= fabs(v->f - gs->mean);
lz[i].grand_total += levene_z * weight;
{
levene_z= fabs(v->f - gs->mean);
lz[i].grand_total += levene_z * weight;
@@
-309,7
+308,7
@@
levene2_calc (const struct ccase *c, void *_l)
struct variable *v = l->v_dep[i];
const union value *val = case_data (c, v->fv);
struct variable *v = l->v_dep[i];
const union value *val = case_data (c, v->fv);
- if (l->is_missing(
val,v
) )
+ if (l->is_missing(
&v->miss, val
) )
{
return 0;
}
{
return 0;
}
@@
-330,7
+329,7
@@
levene2_calc (const struct ccase *c, void *_l)
if ( 0 == gs )
continue;
if ( 0 == gs )
continue;
- if ( ! l->is_missing
(v,var
) )
+ if ( ! l->is_missing
(&var->miss, v
) )
{
levene_z = fabs(v->f - gs->mean);
lz_denominator[i] += weight * pow2(levene_z - gs->lz_mean);
{
levene_z = fabs(v->f - gs->mean);
lz_denominator[i] += weight * pow2(levene_z - gs->lz_mean);