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/user_fom2.c $
5 $LastChangedRevision: 121 $
6 $Date: 2014-07-09 17:52:58 -0400 (Wed, 09 Jul 2014) $
8 ***********************************************************
10 Previously part of :*/
12 /* ----------------------------- user_fom2.c -------------------------------
14 This function computes a user-defined figure of merit.
17 itr1 - array of length niters containing the iteration numbers for the
19 itr2 - array of length niters containing the iteration numbers for the
21 niters - number of iterations to be compared
22 keywrd1 - string containing the keyword which defines the first algorithm.
23 keywrd2 - string containing the keyword which defines the second algorithm.
26 user1 - array of length niters containing the structural accuracy for
28 user2 - array of length niters containing the structural accuracy for
33 #include "experimenter.h"
34 #include "user_fom2.h"
36 void user_fom2(int* itr1, int* itr2, int niters, char* keywrd1, char* keywrd2, double* user1, double* user2)
40 for (i = 0; i < niters; i++)
41 {/* this section is to be replaced */
42 /* by the function to compute a */
43 user1[i] = 0.0; /* user-defined figure of merit */