Changeset 28918
- Timestamp:
- Aug 15, 2010, 3:51:40 PM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data/Makefile
r27817 r28918 19 19 $(SRC)/init.$(ARCH).o \ 20 20 $(SRC)/accum.$(ARCH).o \ 21 $(SRC)/applyfit1d.$(ARCH).o \ 21 22 $(SRC)/applyfit2d.$(ARCH).o \ 22 $(SRC)/applyfit 1d.$(ARCH).o \23 $(SRC)/applyfit3d.$(ARCH).o \ 23 24 $(SRC)/box.$(ARCH).o \ 24 25 $(SRC)/book.$(ARCH).o \ … … 46 47 $(SRC)/fit1d.$(ARCH).o \ 47 48 $(SRC)/fit2d.$(ARCH).o \ 49 $(SRC)/fit3d.$(ARCH).o \ 48 50 $(SRC)/gaussj.$(ARCH).o \ 49 51 $(SRC)/gaussdeviate.$(ARCH).o \ -
branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data/applyfit2d.c
r20936 r28918 10 10 11 11 if (argc != 4) { 12 gprint (GP_ERR, "USAGE: applyfit x y z\n");12 gprint (GP_ERR, "USAGE: applyfit2d x y z\n"); 13 13 return (FALSE); 14 14 } -
branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data/fit2d.c
r27817 r28918 168 168 } 169 169 170 /** test print **/ 171 if (VERBOSE) { 172 for (i = 0; i < wterm; i++) { 173 for (j = 0; j < wterm; j++) { 174 gprint (GP_ERR, "%g ", c[i][j]); 175 } 176 gprint (GP_ERR, "\n"); 177 } 178 gprint (GP_ERR, "-----\n"); 179 } 180 170 181 dgaussjordan (c, b, wterm, 1); 171 182 … … 176 187 gprint (GP_ERR, "x^%d y^%d: %g\n", nx, ny, b[i][0]); 177 188 } 189 } 190 } 191 192 /** test print **/ 193 if (VERBOSE) { 194 for (i = 0; i < wterm; i++) { 195 for (j = 0; j < wterm; j++) { 196 gprint (GP_ERR, "%g ", c[i][j]); 197 } 198 gprint (GP_ERR, "\n"); 178 199 } 179 200 } -
branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data/init.c
r27817 r28918 5 5 int applyfit1d PROTO((int, char **)); 6 6 int applyfit2d PROTO((int, char **)); 7 int applyfit3d PROTO((int, char **)); 7 8 int box PROTO((int, char **)); 8 9 int book_command PROTO((int, char **)); … … 34 35 int fit1d PROTO((int, char **)); 35 36 int fit2d PROTO((int, char **)); 37 int fit3d PROTO((int, char **)); 36 38 int gaussjordan PROTO((int, char **)); 37 39 int gaussdeviate PROTO((int, char **)); … … 138 140 {1, "applyfit1d", applyfit1d, "apply 1-d fit to new vector"}, 139 141 {1, "applyfit2d", applyfit2d, "apply 2-d fit to new vector"}, 142 {1, "applyfit3d", applyfit3d, "apply 3-d fit to new vector"}, 140 143 {1, "book", book_command, "commands to manipulate book/page/word data"}, 141 144 {1, "box", box, "draw a box on the plot"}, … … 168 171 {1, "fit1d", fit1d, "fit polynomial to vector pair"}, 169 172 {1, "fit2d", fit2d, "fit 2-d polynomial to vector triplet"}, 173 {1, "fit3d", fit3d, "fit 3-d polynomial to vector quad"}, 170 174 {1, "gaussdev", gaussdeviate, "generate a gaussian deviate vector"}, 171 175 {1, "gaussint", gaussintegral, "return the integrated gaussian vector"}, -
branches/eam_branches/ipp-20100621/Ohana/src/opihi/cmd.data/vgauss.c
r20936 r28918 42 42 if ((ovec = SelectVector (argv[4], ANYVECTOR, TRUE)) == NULL) return (FALSE); 43 43 44 REQUIRE_VECTOR_FLT (xvec, FALSE);45 REQUIRE_VECTOR_FLT (yvec, FALSE);46 REQUIRE_VECTOR_FLT (svec, FALSE);44 CastVector (xvec, OPIHI_FLT); 45 CastVector (yvec, OPIHI_FLT); 46 CastVector (svec, OPIHI_FLT); 47 47 48 48 Npts = xvec[0].Nelements;
Note:
See TracChangeset
for help on using the changeset viewer.
