queso-0.53.0
|
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <string>
#include <ANN/ANNx.h>
Go to the source code of this file.
Macros | |
#define | TRANS_X(p) (offset_x + scale*(p[dim_x])) |
#define | TRANS_Y(p) (offset_y - scale*(p[dim_y])) |
Functions | |
void | Error (const char *msg, ANNerr level) |
void | set_slice_val (double val) |
void | getArgs (int argc, char **argv) |
void | writeHeader () |
void | writePoint (ANNpoint p) |
void | writeBox (const ANNorthRect &r) |
void | writeLine (ANNpoint p0, ANNpoint p1) |
void | writeCaption (const ANNorthRect &bnd_box, char *caption) |
ANNbool | overlap (const ANNorthRect &box) |
void | recReadTree (ANNorthRect &box) |
void | readTree (ANNorthRect &bnd_box) |
void | readANN () |
main (int argc, char **argv) | |
Variables | |
const int | STRING_LEN = 500 |
const int | MAX_DIM = 1000 |
const double | DEF_SLICE_VAL = 0 |
const char | FIG_HEAD [] = {"#FIG 3.1"} |
const char | DUMP_SUFFIX [] = {".dmp"} |
const char | FIG_SUFFIX [] = {".fig"} |
char | file_name [STRING_LEN] |
char | infile_name [STRING_LEN] |
char | outfile_name [STRING_LEN] |
char | caption [STRING_LEN] |
ofstream | ofile |
ifstream | ifile |
int | dim_x = 0 |
int | dim_y = 1 |
double | slice_val [MAX_DIM] |
double | u_per_in = 1200 |
double | in_size = 5 |
double | in_low_x = 1 |
double | in_low_y = 1 |
double | u_size = 6000 |
double | u_low_x = 1200 |
double | u_low_y = 1200 |
int | pt_size = 10 |
int | dim |
int | n_pts |
ANNpointArray | pts = NULL |
double | scale |
double | offset_x |
double | offset_y |
Definition at line 90 of file ann2fig.cpp.
Referenced by writeBox(), writeCaption(), writeLine(), and writePoint().
Definition at line 91 of file ann2fig.cpp.
Referenced by writeBox(), writeCaption(), writeLine(), and writePoint().
Definition at line 97 of file ann2fig.cpp.
References ANNabort.
Referenced by doValidation(), generatePts(), getArgs(), main(), readANN(), readPts(), and recReadTree().
void getArgs | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 146 of file ann2fig.cpp.
References ANNabort, ANNfalse, ANNtrue, caption, DEF_SLICE_VAL, dim_x, dim_y, DUMP_SUFFIX, Error(), FIG_SUFFIX, file_name, ifile, in_low_x, in_low_y, in_size, infile_name, MAX_DIM, ofile, outfile_name, pt_size, set_slice_val(), slice_val, u_low_x, u_low_y, u_per_in, and u_size.
Referenced by main().
main | ( | int | argc, |
char ** | argv | ||
) |
ANNbool overlap | ( | const ANNorthRect & | box | ) |
Definition at line 332 of file ann2fig.cpp.
References ANNfalse, ANNtrue, dim, dim_x, dim_y, ANNorthRect::hi, ANNorthRect::lo, and slice_val.
Referenced by recReadTree().
void readANN | ( | ) |
Definition at line 514 of file ann2fig.cpp.
References ANNabort, annAllocPts(), dim, dim_x, dim_y, Error(), ANNorthRect::hi, ifile, ANNorthRect::lo, n_pts, offset_x, offset_y, pts, readTree(), scale, STRING_LEN, u_low_x, u_low_y, u_size, and version.
Referenced by main().
void readTree | ( | ANNorthRect & | bnd_box | ) |
Definition at line 464 of file ann2fig.cpp.
References caption, recReadTree(), writeBox(), writeCaption(), and writeHeader().
Referenced by readANN().
void recReadTree | ( | ANNorthRect & | box | ) |
Definition at line 377 of file ann2fig.cpp.
References ANNabort, ANNwarn, dim, dim_x, dim_y, Error(), ANNorthRect::hi, ifile, ANNorthRect::lo, n_pts, overlap(), ANNorthHalfSpace::project(), pts, STRING_LEN, writeBox(), writeLine(), and writePoint().
Referenced by readTree().
void set_slice_val | ( | double | val | ) |
Definition at line 112 of file ann2fig.cpp.
References MAX_DIM, and slice_val.
Referenced by getArgs().
void writeBox | ( | const ANNorthRect & | r | ) |
Definition at line 277 of file ann2fig.cpp.
References ANNorthRect::hi, ANNorthRect::lo, ofile, TRANS_X, and TRANS_Y.
Referenced by readTree(), and recReadTree().
void writeCaption | ( | const ANNorthRect & | bnd_box, |
char * | caption | ||
) |
Definition at line 308 of file ann2fig.cpp.
References ANNorthRect::lo, ofile, TRANS_X, TRANS_Y, and u_per_in.
Referenced by readTree().
void writeHeader | ( | ) |
Definition at line 256 of file ann2fig.cpp.
References FIG_HEAD, ofile, and u_per_in.
Referenced by readTree().
Definition at line 294 of file ann2fig.cpp.
References ofile, TRANS_X, and TRANS_Y.
Referenced by recReadTree().
Definition at line 265 of file ann2fig.cpp.
References ofile, pt_size, TRANS_X, and TRANS_Y.
Referenced by recReadTree().
char caption[STRING_LEN] |
Definition at line 66 of file ann2fig.cpp.
Referenced by getArgs(), and readTree().
const double DEF_SLICE_VAL = 0 |
Definition at line 58 of file ann2fig.cpp.
Referenced by getArgs().
int dim |
Definition at line 81 of file ann2fig.cpp.
Referenced by annAllocPt(), annAllocPts(), annAspectRatio(), annAssignRect(), annBox2Bnds(), annBoxDistance(), annClusEllipsoids(), annClusGaussPts(), annClusOrthFlats(), annCoGaussPts(), annCoLaplacePts(), annCopyPt(), annDist(), annEnclCube(), annEnclRect(), annGaussPts(), annLaplacePts(), annMaxSpread(), annPlanted(), annPrintPt(), annUniformPts(), QUESO::InterpolationSurrogateData< V, M >::check_dim_consistency(), QUESO::InterpolationSurrogateHelper::coordToGlobal(), ANNkd_tree::Dump(), fair_split(), generatePts(), genGauss(), genOrthFlat(), getTrueNN(), QUESO::InterpolationSurrogateHelper::globalToCoord(), QUESO::GslMatrix::GslMatrix(), initGlobals(), ANNorthRect::inside(), main(), midpt_split(), QUESO::GslOptimizer::minimize(), QUESO::GslOptimizer::minimize_no_gradient(), QUESO::GslOptimizer::minimize_with_gradient(), overlap(), printPoint(), printPt(), rbd_tree(), QUESO::InterpolationSurrogateIOASCII< V, M >::read(), readANN(), readPt(), readPts(), recReadTree(), rkd_tree(), QUESO::InterpolationSurrogateBuilder< V, M >::set_domain_vector(), sl_fair_split(), sl_midpt_split(), QUESO::InterpolationSurrogateData< V, M >::spacing(), ANNbruteForce::theDim(), ANNkd_tree::theDim(), tryCentroidShrink(), trySimpleShrink(), and QUESO::InterpolationSurrogateIOASCII< V, M >::write().
int dim_x = 0 |
Definition at line 69 of file ann2fig.cpp.
Referenced by getArgs(), overlap(), readANN(), and recReadTree().
int dim_y = 1 |
Definition at line 70 of file ann2fig.cpp.
Referenced by getArgs(), overlap(), readANN(), and recReadTree().
const char DUMP_SUFFIX[] = {".dmp"} |
Definition at line 60 of file ann2fig.cpp.
Referenced by getArgs().
const char FIG_HEAD[] = {"#FIG 3.1"} |
Definition at line 59 of file ann2fig.cpp.
Referenced by writeHeader().
const char FIG_SUFFIX[] = {".fig"} |
Definition at line 61 of file ann2fig.cpp.
Referenced by getArgs().
char file_name[STRING_LEN] |
Definition at line 63 of file ann2fig.cpp.
Referenced by getArgs().
ifstream ifile |
Definition at line 68 of file ann2fig.cpp.
Referenced by getArgs(), readANN(), and recReadTree().
double in_low_x = 1 |
Definition at line 74 of file ann2fig.cpp.
Referenced by getArgs().
double in_low_y = 1 |
Definition at line 75 of file ann2fig.cpp.
Referenced by getArgs().
double in_size = 5 |
Definition at line 73 of file ann2fig.cpp.
Referenced by getArgs().
char infile_name[STRING_LEN] |
Definition at line 64 of file ann2fig.cpp.
Referenced by getArgs().
const int MAX_DIM = 1000 |
Definition at line 57 of file ann2fig.cpp.
Referenced by getArgs(), and set_slice_val().
int n_pts |
Definition at line 82 of file ann2fig.cpp.
Referenced by ANNkd_leaf::ANNkd_leaf(), annReadTree(), ANNkd_leaf::dump(), ANNkd_tree::Dump(), ANNbruteForce::nPoints(), ANNkd_tree::nPoints(), readANN(), and recReadTree().
double offset_x |
Definition at line 86 of file ann2fig.cpp.
Referenced by readANN().
double offset_y |
Definition at line 87 of file ann2fig.cpp.
Referenced by readANN().
ofstream ofile |
Definition at line 67 of file ann2fig.cpp.
Referenced by getArgs(), writeBox(), writeCaption(), writeHeader(), writeLine(), and writePoint().
char outfile_name[STRING_LEN] |
Definition at line 65 of file ann2fig.cpp.
Referenced by getArgs().
int pt_size = 10 |
Definition at line 79 of file ann2fig.cpp.
Referenced by getArgs(), and writePoint().
ANNpointArray pts = NULL |
Definition at line 83 of file ann2fig.cpp.
Referenced by ANNkd_tree::Dump(), readANN(), recReadTree(), ANNbruteForce::thePoints(), and ANNkd_tree::thePoints().
double scale |
Definition at line 85 of file ann2fig.cpp.
Referenced by QUESO::MLSamplingLevelOptions::checkOptions(), QUESO::MhOptionsValues::checkOptions(), QUESO::MetropolisHastingsSGOptions::getMyOptionValues(), and readANN().
double slice_val[MAX_DIM] |
Definition at line 71 of file ann2fig.cpp.
Referenced by getArgs(), overlap(), and set_slice_val().
const int STRING_LEN = 500 |
Definition at line 56 of file ann2fig.cpp.
Referenced by annReadDump(), annReadTree(), main(), readANN(), and recReadTree().
double u_low_x = 1200 |
Definition at line 77 of file ann2fig.cpp.
double u_low_y = 1200 |
Definition at line 78 of file ann2fig.cpp.
double u_per_in = 1200 |
Definition at line 72 of file ann2fig.cpp.
Referenced by getArgs(), writeCaption(), and writeHeader().
double u_size = 6000 |
Definition at line 76 of file ann2fig.cpp.