KDATA_PMFSTDDEV(3) |
Library Functions Manual |
KDATA_PMFSTDDEV(3) |
NAME
kdata_pmfstddev — compute probability mass function standard deviation of data
LIBRARY
library “libkplot”
SYNOPSIS
#include <cairo.h>
#include <kplot.h>
double
kdata_pmfstddev(
const struct kdata *data);
DESCRIPTION
The
kdata_pmfstddev function compute the standard deviation (i.e., the square root of
kdata_pmfvar(3)) 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_pmfstddev returns 0.0. Otherwise, it returns the standard deviation.