KDATA_XMEAN(3)

NAME
kdata_xmean, kdata_ymean - compute arithmetic mean of data

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)