KDATA_PMFVAR(3) Library Functions Manual KDATA_PMFVAR(3)

NAME

kdata_pmfvarcompute probability mass function variance of data

LIBRARY

library “libkplot”

SYNOPSIS

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

DESCRIPTION

The kdata_pmfmean function compute the variance of its data as if it were a probability mass function.

RETURN VALUES

If the data source has zero entries or the sum of the y values is 0.0, kdata_pmfmean returns 0.0. Otherwise, it returns the variance.

SEE ALSO

kdata_pmfmean(3), kdata_pmfstddev(3), kplot(3)
January 31, 2015 OpenBSD 5.8