math: Avoid unneeded extra allocations for fixed-size data structures.
[pspp] / src / math / trimmed-mean.h
index c667b1be7ffcd9f9486606022c521143f5f08e6e..8803a127bc203b8e1acc0e2978a0bf446f371405 100644 (file)
@@ -17,8 +17,6 @@
 #ifndef __TRIMMED_MEAN_H__
 #define __TRIMMED_MEAN_H__
 
-#include <stddef.h>
-
 #include "order-stats.h"
 
 
@@ -34,6 +32,8 @@ struct trimmed_mean
 
   double w;
   double tail;
+
+  struct k k[2];
 };
 
 struct trimmed_mean * trimmed_mean_create (double W, double c_min);