head	1.3;
access;
symbols;
locks; strict;
comment	@// @;


1.3
date	95.01.09.17.14.47;	author rjj;	state Exp;
branches;
next	1.2;

1.2
date	94.08.29.00.49.03;	author rjj;	state Exp;
branches;
next	1.1;

1.1
date	94.06.20.07.10.39;	author rjj;	state Exp;
branches;
next	;


desc
@Initial version for the Hueckel algorithm suite.
@


1.3
log
@Added standard header.
Deleted unnecessary comments and commented out lines.
@
text
@// test-basis.c         Section: 6.15, Hueckel Edge Operator
//      Copyright 1994, Center for Computer Vision and Visualization,
//      University of Florida.  All rights reserved.
//
// Test the hueckel-basis.[ch] file stuff

#include "hueckel-basis.h"


int main() {
    const double H_RADIUS = 3.0;
    IA_Point<int>
	center(0,0), ip_inside(1,1), ip_outside(4,4);

    HueckelConst C;

    HueckelBasis  h( H_RADIUS, center );
    HueckelBasis::PFD_IP hp;

    cout << "Hueckel H() basis functions, radius = "
	 << H_RADIUS << ", center = " << center << endl;
    for( unsigned int i=0; i < HueckelBasis::NUM_BASIS_FUNCTIONS; i++ ) {
	cout << "H(" << i << "," << ip_inside << ") = "
	     << h.H(i,ip_inside) << "\t"
	     << "H(" << i << "," << ip_outside << ") = "
	     << h.H(i,ip_outside) << "\t"
	     << "C.HC[" << i << "] = " << C.HC[i] << endl;
    }

    cout << endl;
    cout << "Hueckel h() basis functions, radius = "
	 << H_RADIUS << ", center = " << center << endl;

    for( i=0; i < HueckelBasis::NUM_BASIS_FUNCTIONS; i++) {
	hp = h(i);
	cout << "h(" << i << "," << ip_inside << ") = "
	     << (h.*hp)(ip_inside) << "\t"
	     << "h(" << i << "," << ip_outside << ") = "
	     << (h.*hp)(ip_outside) << "\t"
	     << "C.hc[" << i << "] = " << C.hc[i] << endl;
    }

    return 0;
}
@


1.2
log
@Added exit() to main for pickey systems.  Also added standard file header.
@
text
@d1 1
a1 1
// test-basis.c         Section: 6.15
a6 1
#include <iostream.h>
d22 1
a22 1
    for( unsigned int i=0; i<8; i++ ) {
d34 1
a34 2
//    for( i=0; i<HueckelBasis::NUM_BASIS_FUNCTIONS; i++) {
    for( i=0; i<8; i++ ) {
d37 1
a37 2
	     << h.h(i,ip_inside) << "\t"
//	     << (h->*hp)(ip_inside) << "\t"
d39 1
a39 1
	     << h.h(i,ip_outside) << "\t"
a40 1
//	     << (h->*hp)(ip_outside) << endl;
d43 1
a43 1
    exit( 0 );
@


1.1
log
@Initial revision
@
text
@d1 4
a4 1
// test-basis.c
d11 1
a11 2

main() {
d46 2
@
