Main Page | Data Structures | Directories | File List | Globals

mqmesh2D.h

Go to the documentation of this file.
00001 #ifndef _MQMESH2D_H_
00002 #define _MQMESH2D_H_
00003 
00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University
00005    Release Date: 2004-11-01
00006    Part of the MapQuant suite library "mqbasic.lib" 
00007 */
00008 
00017 /* ************** DEFINE THE MESH2D DATA STRUCTURE ************* */
00018 
00023 struct Mesh2D
00024 {
00025     int             x_size;
00026     int             y_size;
00027     float*          x_sampling_array;
00028     float*          y_sampling_array;    
00029     
00030     // NOTE!! Sampling arrays start with index 1
00031 
00032     // Raw Data
00033     float**         z_value_matrix;
00034 } ;
00035 
00036 typedef struct Mesh2D Mesh2D;
00037 
00038 enum {MESH2D_POSITION_ABSL, MESH2D_POSITION_SMPL};
00039 
00040 int  Mesh2D_isPointInside(Mesh2D* mesh, int x, int y);
00041 void Mesh2D_setSamplingArraySizes(Mesh2D* mesh, int x_size, int y_size);
00042 void Mesh2D_setXSamplingArray(Mesh2D* mesh, float* x_sampling_array);
00043 void Mesh2D_setYSamplingArray(Mesh2D* mesh, float* y_sampling_array);
00044 void Mesh2D_mallocRowsArray(Mesh2D* mesh, int x_size);
00045 void Mesh2D_malloc(Mesh2D* mesh, int x_size, int y_size);
00046 
00047 #endif
00048 
00049 

Generated on Tue Feb 7 03:25:43 2006 for libmqbasic by  doxygen 1.4.4