X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fvar.h;h=0bca760ed44aa3f5ce67559704b55a0d3924dae5;hb=067d02c2b8c591efc368cf5127c497313d7a373f;hp=46a0efc5fc0a061d83f315ec9f6cacb93741efa9;hpb=b321086267ad1014dc5d09886396cde30f094437;p=pspp diff --git a/src/var.h b/src/var.h index 46a0efc5fc..0bca760ed4 100644 --- a/src/var.h +++ b/src/var.h @@ -24,48 +24,6 @@ #include "format.h" #include "val.h" -/* Frequency tables. */ - -/* Frequency table entry. */ -struct freq - { - union value v; /* The value. */ - double c; /* The number of occurrences of the value. */ - }; - -/* Types of frequency tables. */ -enum - { - FRQM_GENERAL, - FRQM_INTEGER - }; - -/* Entire frequency table. */ -struct freq_tab - { - int mode; /* FRQM_GENERAL or FRQM_INTEGER. */ - - /* General mode. */ - struct hsh_table *data; /* Undifferentiated data. */ - - /* Integer mode. */ - double *vector; /* Frequencies proper. */ - int min, max; /* The boundaries of the table. */ - double out_of_range; /* Sum of weights of out-of-range values. */ - double sysmis; /* Sum of weights of SYSMIS values. */ - - /* All modes. */ - struct freq *valid; /* Valid freqs. */ - int n_valid; /* Number of total freqs. */ - - struct freq *missing; /* Missing freqs. */ - int n_missing; /* Number of missing freqs. */ - - /* Statistics. */ - double total_cases; /* Sum of weights of all cases. */ - double valid_cases; /* Sum of weights of valid cases. */ - }; - /* Script variables. */ /* Variable type. */