GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
dataquad.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <grass/dataquad.h>
Include dependency graph for dataquad.c:

Go to the source code of this file.

Functions

struct triplequad_point_new (double x, double y, double z, double sm)
 
struct quaddataquad_data_new (double x_or, double y_or, double xmax, double ymax, int rows, int cols, int n_points, int kmax)
 
int quad_compare (struct triple *point, struct quaddata *data)
 
int quad_add_data (struct triple *point, struct quaddata *data, double dmin)
 
int quad_intersect (struct quaddata *data_inter, struct quaddata *data)
 
int quad_division_check (struct quaddata *data, int kmax)
 
struct quaddata ** quad_divide_data (struct quaddata *data, int kmax, double dmin)
 
 for (i=0;i< data->n_points;i++)
 
 return (n)
 

Variables

 int
 
int n = 0
 
int l = 0
 
double xmin = data_inter->x_orig
 
double xmax = data_inter->xmax
 
double ymin = data_inter->y_orig
 
double ymax = data_inter->ymax
 
struct triplepoint
 

Function Documentation

for ( = 0; i < data->n_points; i++)

Definition at line 300 of file dataquad.c.

References quaddata::n_points, quaddata::points, triple::sm, triple::x, triple::y, and triple::z.

int quad_add_data ( struct triple point,
struct quaddata data,
double  dmin 
)

Definition at line 117 of file dataquad.c.

References n, quaddata::n_points, NULL, quaddata::points, r, triple::sm, triple::x, triple::y, and triple::z.

Referenced by quad_divide_data().

int quad_compare ( struct triple point,
struct quaddata data 
)
struct quaddata* quad_data_new ( double  x_or,
double  y_or,
double  xmax,
double  ymax,
int  rows,
int  cols,
int  n_points,
int  kmax 
)
struct quaddata** quad_divide_data ( struct quaddata data,
int  kmax,
double  dmin 
)
int quad_division_check ( struct quaddata data,
int  kmax 
)

Definition at line 183 of file dataquad.c.

References quaddata::n_points, NULL, and quaddata::points.

int quad_intersect ( struct quaddata data_inter,
struct quaddata data 
)

Definition at line 152 of file dataquad.c.

References quaddata::x_orig, quaddata::xmax, xmax, xmin, quaddata::y_orig, quaddata::ymax, ymax, and ymin.

struct triple* quad_point_new ( double  x,
double  y,
double  z,
double  sm 
)

Definition at line 18 of file dataquad.c.

References malloc(), NULL, point, triple::sm, triple::x, triple::y, y, and triple::z.

Referenced by process_point().

return ( n  )

Variable Documentation

int
Initial value:
{
int i, ind

Definition at line 289 of file dataquad.c.

n = 0

Definition at line 291 of file dataquad.c.

Referenced by anderson_darling(), anderson_darling_exp(), atou1(), atovm(), avl_probe(), BM_file_read(), c_ave(), c_count(), c_divr(), c_intr(), c_kurt(), c_max(), c_maxx(), c_min(), c_minx(), c_mode(), c_range(), c_skew(), c_sum(), c_thresh(), c_var(), Cairo_scaled_raster(), chi_square(), chi_square_exp(), chouse(), chousv(), class_discont(), clean_dir(), cmattr(), cmcpy(), cminv(), cmmul(), cmmult(), cmprt(), COM_scaled_raster(), compute_transformation_coef(), cramer_von_mises(), cramer_von_mises_exp(), csolv(), cvmul(), cvnrm(), D_polydots_clip(), D_popup(), dagostino_d(), datetime_format(), db_CatValArray_alloc(), db_CatValArray_realloc(), db_free_string_array(), db_get_table_column(), dig__frealloc(), dig_prune(), dig_Rd_P_area(), dig_Rd_P_isle(), dig_Rd_P_line(), dig_Rd_P_node(), dig_Wr_P_area(), dig_Wr_P_isle(), dig_Wr_P_line(), dig_Wr_P_node(), dmax(), dmax_exp(), durbins_exact(), evmax(), extreme(), fmatprt(), G3d__computeCacheSize(), G3d_cacheSizeEncode(), G3d_readDoubles(), G3d_readInts(), G3d_writeDoubles(), G3d_writeInts(), G__ls(), G__mapset_name(), G__oldsite_get(), G__read_row_ptrs(), G__reallocate_mask_buf(), G__reallocate_null_buf(), G__reallocate_temp_buf(), G__reallocate_work_buf(), G__switch_env(), G__switch_search_path(), G__write_data(), G__write_data_compressed(), G_available_mapsets(), G_database_projection_name(), G_database_unit_name(), G_database_units_to_meters_factor(), G_datum_description(), G_datum_ellipsoid(), G_datum_name(), G_ellipsoid_description(), G_ellipsoid_name(), G_find_key_value(), G_fpreclass_perform_dd(), G_fpreclass_perform_df(), G_fpreclass_perform_di(), G_fpreclass_perform_fd(), G_fpreclass_perform_ff(), G_fpreclass_perform_fi(), G_fpreclass_perform_id(), G_fpreclass_perform_if(), G_fpreclass_perform_ii(), G_free_key_value(), G_fwrite_key_value(), G_get_color(), G_get_histogram_cat(), G_get_histogram_count(), G_list_element(), G_ls(), G_lubksb(), G_ludcmp(), G_make_random_colors(), G_math_complex_mult(), G_number_of_tokens(), G_plot_area(), G_plot_polygon(), G_pole_in_polygon(), G_quant_perform_d(), G_quant_perform_f(), G_read_color_rules(), G_read_range(), G_recreate_command(), G_set_key_value(), G_sort_histogram(), G_sort_histogram_by_count(), G_standard_color_name(), G_standard_color_rgb(), G_usage(), G_wait(), G_window_percentage_overlap(), G_write_histogram(), G_write_zeros(), geary_test(), getg(), GP_draw_site(), GS_dv3norm(), gs_get_databounds_planes(), GS_v2dir(), GS_v2norm(), GS_v3dir(), GS_v3norm(), GS_v3normalize(), gsd_backface(), gsd_coarse_surf_map(), gsd_model2real(), gsd_ortho_wall(), gsd_real2model(), gsd_surf_const(), gsd_surf_map_old(), gsd_wall(), gsd_wire_arrows(), gv_line_length(), Gv_load_vect(), gvld_isosurf(), gvld_slice(), hconj(), hevmax(), hmgen(), house(), housev(), I_add_file_to_group_ref(), I_alloc_double2(), I_alloc_double3(), I_alloc_int2(), I_cluster_end_point_set(), I_cluster_nclasses(), I_cluster_point_part(), I_cluster_signatures(), I_free_signatures(), I_get_to_eol(), I_new_signature(), I_read_one_signature(), I_read_signatures(), I_write_signatures(), insert_str(), iso_calc_cube(), kolmogorov_smirnov_exp(), kotz_families(), kuipers_v_exp(), ldumat(), ldvmat(), LOC_pad_get_item(), LOC_pad_list(), LOC_pad_list_items(), main(), matprt(), mattr(), minv(), mmul(), MT_region_data(), NetA_initialise_varray(), Nviz_set_cplane_here(), omnibus_moments(), ortho(), otrma(), otrsm(), pg_create_struct(), PNG_Erase(), printfile(), PS_scaled_raster(), psinv(), qrbdi(), qrbdu1(), qrbdv(), qrecvc(), qreval(), qrevec(), quad_add_data(), rmmult(), royston(), RTreeAddBranch(), RTreeInitNode(), RTreeNewNode(), RTreeNodeCover(), RTreePickBranch(), RTreeSearch(), ruinv(), segment_get(), segment_get_row(), segment_pagein(), segment_put(), segment_put_row(), shapiro_francia(), shapiro_wilk(), shapiro_wilk_exp(), smgen(), solv(), solvps(), solvru(), sort_cell(), sort_cell_w(), sort_intersection_list(), sqpAllocCol(), sqpAllocVal(), sv2u1v(), sv2uv(), sv2val(), svdu1v(), svduv(), svdval(), tavl_destroy(), tavl_probe(), trncm(), trnm(), unitary(), utrncm(), utrnhm(), V_float_accuracy(), Vect_append_point(), Vect_append_points(), Vect_cat_del(), Vect_cat_get(), Vect_cat_set(), Vect_copy(), Vect_copy_pnts_to_xyz(), Vect_copy_tables(), Vect_copy_xyz_to_pnts(), Vect_delete(), Vect_field_cat_del(), Vect_field_cat_get(), Vect_get_proj_name(), Vect_line_delete_point(), Vect_line_insert_point(), Vect_rename(), Vect_set_constraint_region(), Vect_set_varray_from_cat_list(), Vect_set_varray_from_db(), vmul(), vnrm(), w_ave(), w_count(), w_kurt(), w_max(), w_median(), w_min(), w_mode(), w_quant(), w_skew(), w_sum(), w_var(), watson_u2(), watson_u2_exp(), wcoef(), and weisberg_bingham().

xmin = data_inter->x_orig