CCL
Data Structures | Functions
ccl_utils.h File Reference
#include "gsl/gsl_spline.h"

Go to the source code of this file.

Data Structures

struct  SplPar
 

Functions

double * ccl_linear_spacing (double xmin, double xmax, int N)
 
double * ccl_log_spacing (double xmin, double xmax, int N)
 
SplParccl_spline_init (int n, double *x, double *y, double y0, double yf)
 
double ccl_spline_eval (double x, SplPar *spl)
 
void ccl_spline_free (SplPar *spl)
 

Function Documentation

double* ccl_linear_spacing ( double  xmin,
double  xmax,
int  N 
)

Compute bin edges of N-1 linearly spaced bins on the interval [xmin,xmax]

Parameters
xminminimum value of spacing
xmaxmaximum value of spacing
Nnumber of bins plus one (number of bin edges)
Returns
x, bin edges in range [xmin, xmax]
double* ccl_log_spacing ( double  xmin,
double  xmax,
int  N 
)

Compute bin edges of N-1 logarithmically spaced bins on the interval [xmin,xmax]

Parameters
xminminimum value of spacing
xmaxmaximum value of spacing
Nnumber of bins plus one (number of bin edges)
Returns
x, bin edges in range [xmin, xmax]
double ccl_spline_eval ( double  x,
SplPar spl 
)
void ccl_spline_free ( SplPar spl)
SplPar* ccl_spline_init ( int  n,
double *  x,
double *  y,
double  y0,
double  yf 
)