- np->stddev = sqrt (variance);
-
- np->y_min = np->ns_min = np->dns_min = DBL_MAX;
- np->y_max = np->ns_max = np->dns_max = -DBL_MAX;
-
- proto = caseproto_create ();
- for (i = 0; i < n_NP_IDX; i++)
+ The caller must eventually destroy the returned structure, with
+ statistic_destroy(). */
+struct np *
+np_create (double n, double mean, double var)
+{
+ struct caseproto *proto = caseproto_create ();
+ for (size_t i = 0; i < n_NP_IDX; i++)