Package com.nr.model

Examples of com.nr.model.Proposal


      times[i]=t;
    }

    State s=new State(1.0,3.0,100.0,1,1);
    Plog plog = new Plog(times);
    Proposal propose = new Proposal(10102,0.01);
    for (i=0;i<1000;i++) {    // Burn-in
//      if (i%10 == 0)
//        System.out.printf(s.lam1 << " %f\n", s.lam2 << " %f\n", s.k1 << " %f\n", s.k2 << " %f\n", s.tc);
      accept=Proposal.mcmcstep(1,s,plog,propose);
    }
View Full Code Here


      times[i] = j*1.0/M;
    }
   
    State s = new State(1.0,3.0,100.0,1,1);
    Plog plog = new Plog(times);
    Proposal propose = new Proposal(17,0.01);
    for (i=0;i<1000;i++) accept=Proposal.mcmcstep(1,s,plog,propose);
    for (i=0;i<10000;i++)
      accept=Proposal.mcmcstep(10,s,plog,propose);
//    System.out.printf(s.lam1 << " %f\n", s.lam2 << " %f\n", s.k1 << " %f\n", s.k2 << " %f\n", s.tc);

View Full Code Here

TOP

Related Classes of com.nr.model.Proposal

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.