GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
KDATA_HIST_ALLOC(3) FreeBSD Library Functions Manual KDATA_HIST_ALLOC(3)

kdata_hist_allocallocate histogram data for plotting

library “libkplot”

#include <cairo.h>
#include <kplot.h>

struct kdata *
kdata_hist_alloc(double rmin, double rmax, size_t bins);

The kdata_hist_alloc function creates a reference-counted data sources for kplot(3). The histogram is initialised with x-values set to the bucket minimum and y-values set to zero. It uses a histogram data model: the data array is laid out in uniformly-spaced buckets of size (rmax - rmin) / bins, with a given value x falling into bucket [i / bins * (rmax - rmin) <= x < (i + 1) / bins * (rmax - rmin)]. Bucket values are modified with kdata_hist_add(3) and kdata_hist_set(3).

kdata_hist_alloc returns NULL if memory allocation failed.

kdata_hist_add(3), kplot(3)

January 16, 2015 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.