sys-file-info: Add IBM850 and DIN_66003 encodings.
[pspp] / src / math / covariance.h
index cb83e151409224d1bf1d982a259179b9e79f5f49..2aee9f18b9e0c80a9fa684d58844bebe4442f4a2 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2009 Free Software Foundation, Inc.
+   Copyright (C) 2009, 2010, 2011 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
 #ifndef COVARIANCE_H
 #define COVARIANCE_H
 
-#include <stddef.h>
-
-#include <data/missing-values.h>
 #include <gsl/gsl_matrix.h>
+#include <stddef.h>
+#include "data/missing-values.h"
 
 struct covariance;
 struct variable;
@@ -40,7 +39,7 @@ void covariance_accumulate (struct covariance *, const struct ccase *);
 void covariance_accumulate_pass1 (struct covariance *, const struct ccase *);
 void covariance_accumulate_pass2 (struct covariance *, const struct ccase *);
 
-const gsl_matrix * covariance_calculate (struct covariance *cov);
+gsl_matrix * covariance_calculate (struct covariance *);
 const gsl_matrix * covariance_calculate_unnormalized (struct covariance *);
 
 void covariance_destroy (struct covariance *cov);
@@ -48,5 +47,16 @@ void covariance_destroy (struct covariance *cov);
 const gsl_matrix *covariance_moments (const struct covariance *cov, int m);
 
 const struct categoricals * covariance_get_categoricals (const struct covariance *cov);
+size_t covariance_dim (const struct covariance * cov);
+
+struct tab_table ;
+void
+covariance_dump_enc (const struct covariance *cov, const struct ccase *c,
+                    struct tab_table *t);
+
+struct tab_table *
+covariance_dump_enc_header (const struct covariance *cov, int length);
+
+
 
 #endif