math: Avoid unneeded extra allocations for fixed-size data structures.
[pspp] / src / math / trimmed-mean.h
index 9339cab983ff9fba971d2cd2703ee81f17be6f66..8803a127bc203b8e1acc0e2978a0bf446f371405 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2008 Free Software Foundation, Inc.
+   Copyright (C) 2008, 2009 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
@@ -17,8 +17,6 @@
 #ifndef __TRIMMED_MEAN_H__
 #define __TRIMMED_MEAN_H__
 
-#include <stddef.h>
-
 #include "order-stats.h"
 
 
@@ -34,9 +32,11 @@ struct trimmed_mean
 
   double w;
   double tail;
+
+  struct k k[2];
 };
 
-struct statistic * trimmed_mean_create (double W, double c_min);
+struct trimmed_mean * trimmed_mean_create (double W, double c_min);
 double trimmed_mean_calculate (const struct trimmed_mean *);
 
 #endif