/* $OpenXM: OpenXM/src/asir-contrib/packages/src/tk_bess2.rr,v 1.3 2014/09/05 11:55:19 ohara Exp $ */ import("yang.rr")$ import("tk_pf2.rr")$ import("tk_pfn.rr")$ module tk_bess2; /* Original version: misc-2009/10/fish/bess.rr Check functions are included. */ /* quotetotex_env("conv_rule",7)$ */ /* f=int(exp(-t^2/4-x*t+y/t)t^(-a-1),C) There is a typo in [OST]. a=1/2, [0,1.4]x[0,9] series: Paper3/200310-ascm/ok2.rr bess2_series() is used to get initial values. */ static CC_SIZE$ static CC$ static Idx$ static AA$ localf wcomp$ localf ccinit$ localf getIdx$ localf cc$ localf s$ localf bess2_series$ localf bess2pf$ localf bess2Iv$ localf bess2g0$ localf bess2g$ localf test1$ CC_SIZE=20$ CC = newmat(CC_SIZE,CC_SIZE)$ Idx = newvect(CC_SIZE*CC_SIZE)$ /* comparison by the weight vector (1,2) */ def wcomp(V,W) { R = W[0]+2*W[1] - (V[0]+2*V[1]); if ( R < 0 ) return 1; else if (R == 0) return 0; else return -1; } def ccinit() { for (I=0; I