/[pspp]/pspp/src/levene.c
ViewVC logotype

Diff of /pspp/src/levene.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by blp, Sun Aug 7 04:39:28 2005 UTC revision 1.19 by blp, Mon Oct 24 02:51:32 2005 UTC
# Line 68  struct levene_info Line 68  struct levene_info
68    struct variable *v_indep;    struct variable *v_indep;
69    
70    /* Number of dependent variables */    /* Number of dependent variables */
71    int n_dep;    size_t n_dep;
72    
73    /* The dependent variables */    /* The dependent variables */
74    struct variable  **v_dep;    struct variable  **v_dep;
# Line 94  static void levene2_postcalc (void *); Line 94  static void levene2_postcalc (void *);
94    
95  void    void  
96  levene(const struct casefile *cf,  levene(const struct casefile *cf,
97         struct variable *v_indep, int n_dep, struct variable **v_dep,         struct variable *v_indep, size_t n_dep, struct variable **v_dep,
98               enum lev_missing missing,   is_missing_func value_is_missing)               enum lev_missing missing,   is_missing_func value_is_missing)
99  {  {
100    struct casereader *r;    struct casereader *r;
# Line 156  static struct lz_stats *lz; Line 156  static struct lz_stats *lz;
156  static void  static void
157  levene_precalc (const struct levene_info *l)  levene_precalc (const struct levene_info *l)
158  {  {
159    int i;    size_t i;
160    
161    lz  = xmalloc (sizeof (struct lz_stats ) * l->n_dep ) ;    lz  = xmalloc (sizeof (struct lz_stats ) * l->n_dep ) ;
162    
# Line 186  levene_precalc (const struct levene_info Line 186  levene_precalc (const struct levene_info
186  static int  static int
187  levene_calc (const struct ccase *c, void *_l)  levene_calc (const struct ccase *c, void *_l)
188  {  {
189    int i;    size_t i;
190    int warn = 0;    int warn = 0;
191    struct levene_info *l = (struct levene_info *) _l;    struct levene_info *l = (struct levene_info *) _l;
192    const union value *gv = case_data (c, l->v_indep->fv);    const union value *gv = case_data (c, l->v_indep->fv);
# Line 241  levene_calc (const struct ccase *c, void Line 241  levene_calc (const struct ccase *c, void
241  static void  static void
242  levene_postcalc (void *_l)  levene_postcalc (void *_l)
243  {  {
244    int v;    size_t v;
245    
246    struct levene_info *l = (struct levene_info *) _l;    struct levene_info *l = (struct levene_info *) _l;
247    
# Line 261  static double *lz_denominator; Line 261  static double *lz_denominator;
261  static void  static void
262  levene2_precalc (void *_l)  levene2_precalc (void *_l)
263  {  {
264    int v;    size_t v;
265    
266    struct levene_info *l = (struct levene_info *) _l;    struct levene_info *l = (struct levene_info *) _l;
267    
# Line 290  levene2_precalc (void *_l) Line 290  levene2_precalc (void *_l)
290  static int  static int
291  levene2_calc (const struct ccase *c, void *_l)  levene2_calc (const struct ccase *c, void *_l)
292  {  {
293    int i;    size_t i;
294    int warn = 0;    int warn = 0;
295    
296    struct levene_info *l = (struct levene_info *) _l;    struct levene_info *l = (struct levene_info *) _l;
# Line 343  levene2_calc (const struct ccase *c, voi Line 343  levene2_calc (const struct ccase *c, voi
343  static void  static void
344  levene2_postcalc (void *_l)  levene2_postcalc (void *_l)
345  {  {
346    int v;    size_t v;
347    
348    struct levene_info *l = (struct levene_info *) _l;    struct levene_info *l = (struct levene_info *) _l;
349    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26