Main Page | Files | Data Structures | Functions | Global Variables |
gpiv-post_utils.h File Reference

utilities for GpivScalarData and GpivBinData More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void gpiv_null_scdata (GpivScalarData *scal_data)
 Sets all elements of sc_data structure to NULL. More...
 
GpivScalarDatagpiv_alloc_scdata (const gint nx, const gint ny)
 Allocates memory for GpivScalarData. More...
 
void gpiv_free_scdata (GpivScalarData *scal_data)
 Frees memory for GpivScalarData. More...
 
gchar * gpiv_scalar_gnuplot (const gchar *fname_out, const gchar *title, const gchar *GNUPLOT_DISPLAY_COLOR, const gint GNUPLOT_DISPLAY_SIZE)
 Graphical output with gnuplot for scalar data. More...
 
void gpiv_null_bindata (GpivBinData *bin_data)
 Sets all elements of bin_data structure to NULL. More...
 
GpivBinDatagpiv_alloc_bindata (const guint nbins)
 Allocates memory for GpivBinData. More...
 
void gpiv_free_bindata (GpivBinData *bin_data)
 Frees memory for GpivBinData. More...
 
void gpiv_histo (const GpivPivData *data, GpivBinData *klass)
 Calculates histogram from GpivPivData (NOT from GpivScalarData!!). More...
 
void gpiv_cumhisto (const GpivPivData *data, GpivBinData *klass)
 Calculates cumulative histogram from GpivPivData (NOT from GpivScalarData!!). More...
 
gchar * gpiv_histo_gnuplot (const gchar *fname_out, const gchar *title, const gchar *GNUPLOT_DISPLAY_COLOR, const gint GNUPLOT_DISPLAY_SIZE)
 Plots histogram on screen with gnuplot. More...
 

Detailed Description

utilities for GpivScalarData and GpivBinData

SOURCES: lib/post_utils.c

LAST MODIFICATION DATE:

Id
gpiv-post_utils.h,v 1.1 2007-11-23 16:12:18 gerber Exp

Definition in file gpiv-post_utils.h.

Function Documentation

◆ gpiv_alloc_bindata()

GpivBinData* gpiv_alloc_bindata ( const guint  nbins)

Allocates memory for GpivBinData.

Parameters
[in]nbinsnumber of bins or klasses in GpivBinData
Returns
GpivBinData on success or NULL on failure

◆ gpiv_alloc_scdata()

GpivScalarData* gpiv_alloc_scdata ( const gint  nx,
const gint  ny 
)

Allocates memory for GpivScalarData.

Parameters
[in]nxcolumns array length of GpivScalarData
[in]nyrow array length of GpivScalarData structure
Returns
GpivScalarData or NULL on failure

◆ gpiv_cumhisto()

void gpiv_cumhisto ( const GpivPivData data,
GpivBinData klass 
)

Calculates cumulative histogram from GpivPivData (NOT from GpivScalarData!!).

Parameters
[in]dataInput data
[out]klassOutput data
Returns
void

◆ gpiv_free_bindata()

void gpiv_free_bindata ( GpivBinData bin_data)

Frees memory for GpivBinData.

Parameters
[in]bin_datadata of bins
[out]bin_dataNULL pointer to count, bound, centre
Returns
void

◆ gpiv_free_scdata()

void gpiv_free_scdata ( GpivScalarData scal_data)

Frees memory for GpivScalarData.

Parameters
[in]scal_datascalar data structure
[out]scal_dataNULL pointer to point_x, point_y, scalar, flag
Returns
void

◆ gpiv_histo()

void gpiv_histo ( const GpivPivData data,
GpivBinData klass 
)

Calculates histogram from GpivPivData (NOT from GpivScalarData!!).

Parameters
[in]dataInput data
[out]klassOutput data
Returns
void

◆ gpiv_histo_gnuplot()

gchar* gpiv_histo_gnuplot ( const gchar *  fname_out,
const gchar *  title,
const gchar *  GNUPLOT_DISPLAY_COLOR,
const gint  GNUPLOT_DISPLAY_SIZE 
)

Plots histogram on screen with gnuplot.

Parameters
[in]fname_outoutput filename
[in]titleplot title
[in]GNUPLOT_DISPLAY_COLORdisplay color of window containing graph
[in]GNUPLOT_DISPLAY_SIZEdisplay size of window containing graph
Returns
NULL on success or error message on failure

◆ gpiv_null_bindata()

void gpiv_null_bindata ( GpivBinData bin_data)

Sets all elements of bin_data structure to NULL.

Parameters
[in]bin_dataInput Bin data structure
[out]bin_dataOutput Bin data structure
Returns
void

◆ gpiv_null_scdata()

void gpiv_null_scdata ( GpivScalarData scal_data)

Sets all elements of sc_data structure to NULL.

Parameters
[in]scal_dataInput Scalar data structure
[out]scal_dataOutput Scalar data structure
Returns
void

◆ gpiv_scalar_gnuplot()

gchar* gpiv_scalar_gnuplot ( const gchar *  fname_out,
const gchar *  title,
const gchar *  GNUPLOT_DISPLAY_COLOR,
const gint  GNUPLOT_DISPLAY_SIZE 
)

Graphical output with gnuplot for scalar data.

Parameters
[in]fname_outfile name containing plot
[in]titletitle of plot
[in]GNUPLOT_DISPLAY_COLORdisplay color of window containing graph
[in]GNUPLOT_DISPLAY_SIZEdisplay size of window containing graph
Returns
NULL on success or error message on failure

Generated for libgpiv-0.6.1 by doxygen 1.8.13