/* hermite.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" #define QUROOTPI 1.3313353638003898 #define SQROOTPI 1.7724538509055159 #define ONEON4PI 0.079577471545947673 static float **h0, **h1, **hp0, **hp1, **capH0, **capH1, **phipi; static float **acoefs; /* The basic form of these indices is discussed in "On Polynomial- * based Projection Indices for Exploratory Projection Pursuit" by * Peter Hall, 1989, Annals of Statistics. */ void alloc_hermite(int n, int maxlJ) { int i; h0 = (float **) XtMalloc( (unsigned int) maxlJ*sizeof(float *)); for (i=0; i 1) { for (i=0; i 1) { for (i=0; i