utilities for GpivScalarData and GpivBinData
More...
Go to the source code of this file.
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.
◆ gpiv_alloc_bindata()
Allocates memory for GpivBinData.
- Parameters
-
[in] | nbins | number of bins or klasses in GpivBinData |
- Returns
- GpivBinData on success or NULL on failure
◆ gpiv_alloc_scdata()
Allocates memory for GpivScalarData.
- Parameters
-
[in] | nx | columns array length of GpivScalarData |
[in] | ny | row array length of GpivScalarData structure |
- Returns
- GpivScalarData or NULL on failure
◆ gpiv_cumhisto()
Calculates cumulative histogram from GpivPivData (NOT from GpivScalarData!!).
- Parameters
-
[in] | data | Input data |
[out] | klass | Output data |
- Returns
- void
◆ gpiv_free_bindata()
Frees memory for GpivBinData.
- Parameters
-
[in] | bin_data | data of bins |
[out] | bin_data | NULL pointer to count, bound, centre |
- Returns
- void
◆ gpiv_free_scdata()
Frees memory for GpivScalarData.
- Parameters
-
[in] | scal_data | scalar data structure |
[out] | scal_data | NULL pointer to point_x, point_y, scalar, flag |
- Returns
- void
◆ gpiv_histo()
Calculates histogram from GpivPivData (NOT from GpivScalarData!!).
- Parameters
-
[in] | data | Input data |
[out] | klass | Output 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_out | output filename |
[in] | title | plot title |
[in] | GNUPLOT_DISPLAY_COLOR | display color of window containing graph |
[in] | GNUPLOT_DISPLAY_SIZE | display size of window containing graph |
- Returns
- NULL on success or error message on failure
◆ gpiv_null_bindata()
Sets all elements of bin_data structure to NULL.
- Parameters
-
[in] | bin_data | Input Bin data structure |
[out] | bin_data | Output Bin data structure |
- Returns
- void
◆ gpiv_null_scdata()
Sets all elements of sc_data structure to NULL.
- Parameters
-
[in] | scal_data | Input Scalar data structure |
[out] | scal_data | Output 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_out | file name containing plot |
[in] | title | title of plot |
[in] | GNUPLOT_DISPLAY_COLOR | display color of window containing graph |
[in] | GNUPLOT_DISPLAY_SIZE | display size of window containing graph |
- Returns
- NULL on success or error message on failure