/* dummy.c */ /************************************************************ * * * Permission is hereby granted to any individual or * * institution for use, copying, or redistribution of * * the xgobi code and associated documentation, provided * * that such code and documentation are not sold for * * profit and the following copyright notice is retained * * in the code and documentation: * * Copyright (c) 1990, ..., 1996 Bellcore * * * * We welcome your questions and comments, and request * * that you share any modifications with us. * * * * Deborah F. Swayne Dianne Cook * * dfs@research.att.com dicook@iastate.edu * * (973) 360-8423 www.public.iastate.edu/~dicook/ * * * * Andreas Buja * * andreas@research.att.com * * www.research.att.com/~andreas/ * * * ************************************************************/ #include #include "xincludes.h" #include "xgobitypes.h" #include "xgobivars.h" #include "xgobiexterns.h" /* #defines static float *var_decs0, *var_decs1; void alloc_dummy(int n) { var_decs0 = (float *) XtMalloc( (unsigned int) n*sizeof(float *)); var_decs1 = (float *) XtMalloc( (unsigned int) n*sizeof(float *)); } void free_dummy() { XtFree((XtPointer) var_decs0); XtFree((XtPointer) var_decs1); } float dummy_index(float **proj_data, int n, int *rows_in_plot, float param) { int i, m; float indx_val; * Calculations of index * for (i=0; i