#define CR_VALUE_NOT_FOUND -2
#define CR_INDEX_NOT_FOUND -3
+static gsl_vector_const_view cr_value_to_vector (const union value *,
+ struct recoded_categorical *);
+
struct recoded_categorical *
cr_recoded_categorical_create (const struct variable *v)
{
Return the row of the matrix corresponding
to the value v.
*/
-gsl_vector_const_view
+static gsl_vector_const_view
cr_value_to_vector (const union value * v, struct recoded_categorical * cr)
{
size_t row;
/*
There are usually multiple categorical variables to recode. Get rid
- of this immediately once the variable structure has been modified to
- contain the binary encoding.
+ of this structure immediately when the variable structure has been
+ modified to contain the binary encoding.
*/
struct recoded_categorical_array
{
const union value *cr_vector_to_value (const gsl_vector *,
struct recoded_categorical *);
-gsl_vector_const_view cr_value_to_vector (const union value *,
- struct recoded_categorical *);
-
void cr_value_update (struct recoded_categorical *, const union value *);
int cr_free_recoded_array (struct recoded_categorical_array *);