weighted_sum.c File Reference

#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
REAL4data = NULL
REAL4data_squared = NULL
REAL4ks_data = NULL
unsigned char * output_buffer
REAL4 total_weight = 0.0


Define Documentation

#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 Documentation

typedef float REAL4

Definition at line 30 of file weighted_sum.c.


Function Documentation

void* do_alloc ( long  a,
long  b 
)

Definition at line 32 of file weighted_sum.c.

REAL4 exponential_distribution ( REAL4  x,
REAL4  lambda 
)

Definition at line 47 of file weighted_sum.c.

int c_r4 ( REAL4 a,
REAL4 b 
)

Definition at line 53 of file weighted_sum.c.

REAL4 sum_positive_r4 ( REAL4 array,
long  count 
)

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

Parameters:
[in] argc INT4
[in] argv[] CHAR*
Returns:
return 0 on normal exit.

some memory allocations

Definition at line 305 of file weighted_sum.c.


Variable Documentation

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.

REAL4 weight

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.

REAL4* data = NULL

Definition at line 175 of file weighted_sum.c.

REAL4 * data_squared = NULL

Definition at line 175 of file weighted_sum.c.

REAL4 * ks_data = NULL

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.


Generated on Tue Oct 7 02:41:36 2008 for LAL by  doxygen 1.5.2