SDDSlib
|
Program for analyzing data points relative to geometric boundaries. More...
Go to the source code of this file.
Functions | |
void | omp_set_num_threads (int a) |
long | compute_inside_sum (double x, double y, double **xBoundary, double **yBoundary, int64_t *nValues, long nBoundaries) |
long | read_boundary_data (char *boundaryInput, char *bxColumn, char *byColumn, double ***xBoundary, double ***yBoundary, int64_t **nValues) |
int | main (int argc, char **argv) |
Variables | |
char * | option [N_OPTIONS] |
static char * | USAGE |
char * | keepOption [N_KEEP_OPTIONS] |
double * | xData |
double * | yData |
double ** | xBoundary = NULL |
double ** | yBoundary = NULL |
int64_t * | nValues = NULL |
int64_t | rows |
long | nBoundaries = 0 |
int | threads = 1 |
int32_t * | insideSumData |
Program for analyzing data points relative to geometric boundaries.
This program reads a data file and checks whether each data point falls inside or outside user-defined boundaries specified in a separate file. The program supports multithreading for enhanced performance and allows filtering of points based on their inclusion or exclusion from the boundaries.
-columns
: Specify the x and y columns in the input file.-boundary
: Provide a file containing boundary data.-insideColumn
: Define the name of the output column indicating boundary inclusion.-keep
: Filter points inside or outside boundaries.-threads
: Set the number of threads for computation.-pipe
: Enable piping for input/output.Definition in file sddsinsideboundaries.c.
enum keep_option_types |
Definition at line 93 of file sddsinsideboundaries.c.
enum option_type |
Definition at line 55 of file sddsinsideboundaries.c.
long compute_inside_sum | ( | double | x, |
double | y, | ||
double ** | xBoundary, | ||
double ** | yBoundary, | ||
int64_t * | nValues, | ||
long | nBoundaries ) |
Definition at line 286 of file sddsinsideboundaries.c.
int main | ( | int | argc, |
char ** | argv ) |
Definition at line 116 of file sddsinsideboundaries.c.
void omp_set_num_threads | ( | int | a | ) |
Definition at line 52 of file sddsinsideboundaries.c.
long read_boundary_data | ( | char * | boundaryInput, |
char * | bxColumn, | ||
char * | byColumn, | ||
double *** | xBoundary, | ||
double *** | yBoundary, | ||
int64_t ** | nValues ) |
Definition at line 262 of file sddsinsideboundaries.c.
int32_t* insideSumData |
Definition at line 114 of file sddsinsideboundaries.c.
char* keepOption[N_KEEP_OPTIONS] |
Definition at line 100 of file sddsinsideboundaries.c.
long nBoundaries = 0 |
Definition at line 112 of file sddsinsideboundaries.c.
int64_t* nValues = NULL |
Definition at line 111 of file sddsinsideboundaries.c.
char* option[N_OPTIONS] |
Definition at line 65 of file sddsinsideboundaries.c.
int64_t rows |
Definition at line 111 of file sddsinsideboundaries.c.
int threads = 1 |
Definition at line 113 of file sddsinsideboundaries.c.
|
static |
Definition at line 74 of file sddsinsideboundaries.c.
double** xBoundary = NULL |
Definition at line 110 of file sddsinsideboundaries.c.
double* xData |
Definition at line 109 of file sddsinsideboundaries.c.
double ** yBoundary = NULL |
Definition at line 110 of file sddsinsideboundaries.c.
double * yData |
Definition at line 109 of file sddsinsideboundaries.c.