2 ***********************************************************
3 $SNARK_Header: S N A R K 1 4 - A PICTURE RECONSTRUCTION PROGRAM $
4 $HeadURL: svn://dig.cs.gc.cuny.edu/snark/trunk/src/snark/pointwse.c $
5 $LastChangedRevision: 80 $
6 $Date: 2014-07-01 21:01:54 -0400 (Tue, 01 Jul 2014) $
8 ***********************************************************
10 Previously part of SuperSNARK
13 #include "experimenter.h"
14 #include "read_eval_recon2.h"
17 /* ----------------------------- pointwse.c -------------------------------
19 This function computes the pointwise accuracy.
22 mode - number of MODE commands read in so far.
23 itr1 - array of length niters containing the iteration numbers for the
25 itr2 - array of length niters containing the iteration numbers for the
27 niters - number of iterations to be compared
28 keywrd1 - string containing the keyword which defines the first algorithm.
29 keywrd2 - string containing the keyword which defines the second algorithm.
32 str_acc1 - array of length niters containing the structural accuracy for
34 str_acc1 - array of length niters containing the structural accuracy for
39 void pointwse(int mode, int* itr1, int* itr2, int niters, char* keywrd1, char* keywrd2, double* poin_acc1, double* poin_acc2)
46 for (i = 0; i < niters; i++)
47 { /* read in normalized root mean square distance for
48 the reconstructions. */
50 read_eval_recon2(mode, itr1[i], keywrd1, &recon);
51 poin_acc1[i] = -recon;
52 read_eval_recon2(mode, itr2[i], keywrd2, &recon);
53 poin_acc2[i] = -recon;