Displaying 1 result from an estimated 1 matches for "iimodel".
Did you mean:
imodel
2002 Jun 13
0
Verbatim text to file
...y
helpful to supply stand-alone examples.
Till now I have been using something like the following,
but I would like to be able to paste the Java-code into
the R-script directly.
Thanks in advance,
Anders.
####R-snip
prog.string<-paste(
"public class myiim implements IIModel{",
" public double[] drift(double[] val, double dt){return(new
double[]{0,0,dt});}",
" public double[] noise(double[] val, double dt){",
" return(new double[]{Math.sqrt(dt)*.1,Math.sqrt(dt)*.1, 0});",
" }",
" public int di...