[BACK]Return to cgi-asir-r-fd2.sh CVS log [TXT][DIR] Up to [local] / OpenXM / src / asir-port / cgi

Annotation of OpenXM/src/asir-port/cgi/cgi-asir-r-fd2.sh, Revision 1.3

1.1       takayama    1: #!/bin/bash
1.3     ! takayama    2: # $OpenXM: OpenXM/src/asir-port/cgi/cgi-asir-r-fd2.sh,v 1.2 2014/09/01 02:41:48 takayama Exp $
1.2       takayama    3: ## Replace $OpenXM_HOME by an absolute path of your cite and uncomment
                      4: #export OpenXM_HOME=/private/taka/OpenXM
1.1       takayama    5: export HOME=/tmp
                      6: ## Note that OpenXM_tmp is set in the dot.bashrc below as HOME/.OpenXM_tmp
1.3     ! takayama    7: source "$OpenXM_HOME/rc/dot.bashrc"
1.1       takayama    8: #source /home/taka/OpenXM/rc/dot.bashrc
                      9: export TMP=/tmp
1.3     ! takayama   10: export CGI_ASIR_ALLOW="[(version) (asir_contrib_copyright) (r_ahvec) (a_expect) (r_expect) ]"
1.1       takayama   11: export CGI_ASIR_TLIMIT="60"
1.3     ! takayama   12: export OX_ASIR_LOAD_FILE="$OpenXM_HOME/src/asir-port/cgi/r-fd.rr"
        !            13: export CGI_ASIR_MSG="<pre>
        !            14:  Example. r_ahvec(-1,[-2,-3],10,[[1,1/2,1/3],[1,1,1]])
        !            15:  r_ahvec(A,B,C,P),  P is a 2 by m matrix.
        !            16:  Contingency table:
        !            17:  -A,     0,    0,   0
        !            18:  C-1,-B[0],-B[1],-B[2]
        !            19:  It returns (Z, d21 Z, d22 Z, ..., d2m Z).
        !            20:  a_expect(A,B,C,P) or r_expect(A,B,C,P) returns
        !            21:   [E[U_21],E[U_22], ..., E[U_2m]]
        !            22:  BUG: decimal to rational transformation function might not work properly.
        !            23:           Then, double-check the R outputs.
        !            24: </pre><br>"
1.2       takayama   25: WFILE=$TMP/tmp2-post-$$.txt
                     26: tee /tmp/t2.txt | oxdecode_post >${WFILE}
1.3     ! takayama   27: "$OpenXM_HOME/src/asir-port/cgi/webasir2" --settimer ${CGI_ASIR_TLIMIT} --debug 0 --stdin <${WFILE}
1.1       takayama   28: rm -f ${WFILE}
                     29: exit 0
                     30:

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>