Main Page | Data Structures | File List | Data Fields | Globals

loaddata.c File Reference


Detailed Description

Author:
Hal Finkel
Data loading, normalization and background identification

#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <ctype.h>
#include <gsl/gsl_statistics.h>
#include <gsl/gsl_fit.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_blas.h>
#include <gsl/gsl_multifit_nlin.h>
#include "common.h"

Include dependency graph for loaddata.c:

Include dependency graph

Defines

#define MINWIDTH   4
 Minimum width of a peak.

Functions

int pf_loaddata (char *fn, struct pf_data *d)
 Load data from a file.
double pf_chanwindowavg (double *data, int ds, int ci, int ac)
 Compute the average counts per bin over some window.

Define Documentation

#define MINWIDTH   4
 

Minimum width of a peak.

This number must be greater than or equal to the number of parameters in the peak fit


Function Documentation

double pf_chanwindowavg double *  data,
int  ds,
int  ci,
int  ac
 

Compute the average counts per bin over some window.

Parameters:
[in] data The data array
[in] ds The size of the data array
[in] ci The center of the window
[in] ac The size of the window
Returns:
The average over the window

int pf_loaddata char *  fn,
struct pf_data d
 

Load data from a file.

Parameters:
[in] fn The file name
[out] d The data set
Returns:
Boolean status flag

Here is the call graph for this function:


Generated on Sun Feb 20 17:46:32 2005 for peakfinder-0.1 by  doxygen 1.3.9.1