#include <stdio.h>#include <unistd.h>#include <stdlib.h>#include <sys/types.h>#include <signal.h>#include <wait.h>#include <string.h>#include <math.h>Include dependency graph for weighted_sum.c:

Go to the source code of this file.
Defines | |
| #define | BUFFER_SIZE (256*1024) |
| #define | MODE_TEXT 1 |
| #define | MODE_BINARY 2 |
| #define | MODE_BINARY_SWAPPED 3 |
| #define | LINE_SIZE 200000 |
Typedefs | |
| typedef float | REAL4 |
Functions | |
| void * | do_alloc (long a, long b) |
| REAL4 | exponential_distribution (REAL4 x, REAL4 lambda) |
| int | c_r4 (REAL4 *a, REAL4 *b) |
| REAL4 | sum_positive_r4 (REAL4 *array, long count) |
| void | Kolmogorov_Smirnov_test (REAL4 *array, long count, REAL4 *average, REAL4 *median, REAL4 *lambda, REAL4 *Dn, REAL4 outlier_level, long *outliers) |
| void | open_pipe (char *command, char *filename, int num) |
| void | attach_input_file (char *filename, int num) |
| void | kill_decompressors (void) |
| void | sig_handler (int a) |
| void | sig_child_handler (int a) |
| void | swap_real4 (REAL4 *a) |
| int | main (int argc, char *argv[]) |
| MAIN function of SideBandMCMC code Compute the posterior pdfs of the orbital and nuisance parameters of a binary signal in Fstat form. | |
Variables | |
| struct { | |
| unsigned char * filename | |
| FILE * fin | |
| unsigned char * buffer | |
| int fd [2] | |
| REAL4 weight | |
| pid_t pid | |
| int mode | |
| } | input |
| long | num_inputs = 0 |
| int | precision = 6 |
| REAL4 * | data = NULL |
| REAL4 * | data_squared = NULL |
| REAL4 * | ks_data = NULL |
| unsigned char * | output_buffer |
| REAL4 | total_weight = 0.0 |
| #define BUFFER_SIZE (256*1024) |
Definition at line 156 of file weighted_sum.c.
| #define MODE_TEXT 1 |
Definition at line 158 of file weighted_sum.c.
| #define MODE_BINARY 2 |
Definition at line 159 of file weighted_sum.c.
| #define MODE_BINARY_SWAPPED 3 |
Definition at line 160 of file weighted_sum.c.
| #define LINE_SIZE 200000 |
Definition at line 303 of file weighted_sum.c.
| typedef float REAL4 |
Definition at line 30 of file weighted_sum.c.
| void* do_alloc | ( | long | a, | |
| long | b | |||
| ) |
Definition at line 32 of file weighted_sum.c.
Definition at line 47 of file weighted_sum.c.
Definition at line 53 of file weighted_sum.c.
Definition at line 61 of file weighted_sum.c.
| void Kolmogorov_Smirnov_test | ( | REAL4 * | array, | |
| long | count, | |||
| REAL4 * | average, | |||
| REAL4 * | median, | |||
| REAL4 * | lambda, | |||
| REAL4 * | Dn, | |||
| REAL4 | outlier_level, | |||
| long * | outliers | |||
| ) |
Definition at line 104 of file weighted_sum.c.
| void open_pipe | ( | char * | command, | |
| char * | filename, | |||
| int | num | |||
| ) |
Definition at line 177 of file weighted_sum.c.
| void attach_input_file | ( | char * | filename, | |
| int | num | |||
| ) |
Definition at line 217 of file weighted_sum.c.
| void kill_decompressors | ( | void | ) |
Definition at line 247 of file weighted_sum.c.
| void sig_handler | ( | int | a | ) |
Definition at line 263 of file weighted_sum.c.
| void sig_child_handler | ( | int | a | ) |
Definition at line 271 of file weighted_sum.c.
| void swap_real4 | ( | REAL4 * | a | ) | [inline] |
Definition at line 287 of file weighted_sum.c.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
MAIN function of SideBandMCMC code Compute the posterior pdfs of the orbital and nuisance parameters of a binary signal in Fstat form.
Main function
| [in] | argc | INT4 |
| [in] | argv[] | CHAR* |
some memory allocations
Definition at line 305 of file weighted_sum.c.
| unsigned char* filename |
Definition at line 163 of file weighted_sum.c.
| FILE* fin |
Definition at line 164 of file weighted_sum.c.
| unsigned char* buffer |
Definition at line 165 of file weighted_sum.c.
| int fd[2] |
Definition at line 166 of file weighted_sum.c.
Definition at line 167 of file weighted_sum.c.
| pid_t pid |
Definition at line 168 of file weighted_sum.c.
| int mode |
Definition at line 169 of file weighted_sum.c.
| struct { ... } * input |
| long num_inputs = 0 |
Definition at line 172 of file weighted_sum.c.
| int precision = 6 |
Definition at line 173 of file weighted_sum.c.
Definition at line 175 of file weighted_sum.c.
| REAL4 * data_squared = NULL |
Definition at line 175 of file weighted_sum.c.
Definition at line 175 of file weighted_sum.c.
| unsigned char* output_buffer |
Definition at line 300 of file weighted_sum.c.
| REAL4 total_weight = 0.0 |
Definition at line 301 of file weighted_sum.c.
1.5.2