KDATA_XMEAN(3) Library Functions Manual KDATA_XMEAN(3)

NAME

kdata_xmean, kdata_ymeancompute arithmetic mean of data

LIBRARY

library “libkplot”

SYNOPSIS

#include <cairo.h>
#include <kplot.h>
double
kdata_xmean(const struct kdata *data);
double
kdata_ymean(const struct kdata *data);

DESCRIPTION

The kdata_xmean and kdata_ymean functions compute the arithmetic mean of a data source.

RETURN VALUES

If the data source has zero entries, kdata_xmean and kdata_ymean return 0.0. Otherwise, they returns the mean value.

SEE ALSO

kplot(3)
January 29, 2015 OpenBSD 5.8