shapelet_basis

API documentation for shapelet_basis.c.

A function to create a look-up shapelet basis function array, with relevant constants definitions.

Functions

user_precision_t *create_sbf(user_precision_t *sbf)

Create the 1D shapelet basis function look-up array sbf

sbf should have sbf_N * sbf_L * sizeof(user_precision_t) of memory allocated.

Each 1D basis function is \(B_n(x, \beta)\), with \(n\) the basis function order, and \(\beta \) the scaling factor. For all stored arrays, I have set \(\beta=1\). Pre-written arrays of basis function orders \(n=0\) to \(n=100\) are then copied into sbf, each of length sbf_L. Each samples over the range \(-500\leq x \leq 500 \), with a resolution \( \Delta x = 0.01 \)

This single lookup array can then be used to generate 2D shapelet basis functions later on varying \(\beta\) values via a scaling factor.

Parameters:

sbf[in] An array with sbf_N * sbf_L * sizeof(user_precision_t) of memory allocated

Returns:

The populated sbf array