FCT Documentation-lfct -lfftw -Lfct_library_directory -Lfftw_library_directory
| set_N_dimensions | |
|---|---|
| Prototype: | void set_N_dimensions(int N_dimensions) |
| Description: | This function sets the number of dimensions used in the chirp transform. Version 1.0 only supports 2 dimensions. |
| Inputs: | N_dimensions = number of dimensions |
| Return Values: | None |
| set_N_data | |
|---|---|
| Prototype: | void set_N_data(int N_data) |
| Description: | This function sets the total number of complex data points in the initial data set. |
| Inputs: | N_data = number of complex data points |
| Return Values: | None |
| set_phase_function | |||||||
|---|---|---|---|---|---|---|---|
| Prototype: | void set_phase_function(int dimension, int N_tau, float (*phase_function)(float)) | ||||||
| Description: | The function set the phase function for a given dimension. In version 1.0, only the phase function for dimension 1 can be set. | ||||||
| Inputs: |
|
||||||
| Return Values: | None | ||||||
| set_N_tau0 | |
|---|---|
| Prototype: | void set_N_tau0(int N_tau0) |
| Description: | This function sets the length of dimension 0. |
| Inputs: | N_tau0 = the length of dimension 0 in complex data points |
| Return Values: | None |
| initialize | |
|---|---|
| Prototype: | int initialize(int type) |
| Description: | This function initializes the FCT. This must be called before calling fcxf() and after calling all of the following: set_N_dimensions(), set_N_data(), set_phase_function(), and set_N_tau0(). |
| Inputs: | N_tau0 = the length of dimension 0 in complex data points |
| Return Values: | None |
| get_output_data_length | |
|---|---|
| Prototype: | int get_output_data_length(void) |
| Description: | This function return the number of complex data points in the output array generated by the FCT. Use this function to determine how much space to allocate for the output data array. |
| Inputs: | None |
| Return Values: | The number of complex data points in the output array. |
| get_largest_data_segment | |
|---|---|
| Prototype: | int get_largest_data_segment(void) |
| Description: | This function returns the largest data segment as determined by the specified phase function. The value of N_tau0 set using set_N_tau0 must be greater then or equal to this value. |
| Inputs: | None |
| Return Values: | The number of complex data points in the largest data segment. |
| fcxf | |||||
|---|---|---|---|---|---|
| Prototype: | void fcxf(float *input,float *output) | ||||
| Description: | This function performs the fast chirp transform on the input data. Note that the input pointer cannot equal the output pointer. | ||||
| Inputs: |
|
||||
| Return Values: | None | ||||