[Yuima-commits] r714 - / .Rproj.user .Rproj.user/A3842A2 .Rproj.user/A3842A2/console06 .Rproj.user/A3842A2/pcs .Rproj.user/A3842A2/sources .Rproj.user/A3842A2/sources/per .Rproj.user/A3842A2/sources/per/t .Rproj.user/A3842A2/sources/prop .Rproj.user/shared .Rproj.user/shared/notebooks R data inst inst/ybook man src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sun Sep 22 22:36:43 CEST 2019


Author: phoenix844
Date: 2019-09-22 22:36:42 +0200 (Sun, 22 Sep 2019)
New Revision: 714

Added:
   .Rbuildignore
   .Rhistory
   .Rproj.user/
   .Rproj.user/A3842A2/
   .Rproj.user/A3842A2/console06/
   .Rproj.user/A3842A2/console06/INDEX001
   .Rproj.user/A3842A2/cpp-complilation-config
   .Rproj.user/A3842A2/cpp-definition-cache
   .Rproj.user/A3842A2/ctx/
   .Rproj.user/A3842A2/explorer-cache/
   .Rproj.user/A3842A2/pcs/
   .Rproj.user/A3842A2/pcs/debug-breakpoints.pper
   .Rproj.user/A3842A2/pcs/files-pane.pper
   .Rproj.user/A3842A2/pcs/source-pane.pper
   .Rproj.user/A3842A2/pcs/windowlayoutstate.pper
   .Rproj.user/A3842A2/pcs/workbench-pane.pper
   .Rproj.user/A3842A2/presentation/
   .Rproj.user/A3842A2/profiles-cache/
   .Rproj.user/A3842A2/rmd-outputs
   .Rproj.user/A3842A2/saved_source_markers
   .Rproj.user/A3842A2/sources/
   .Rproj.user/A3842A2/sources/per/
   .Rproj.user/A3842A2/sources/per/t/
   .Rproj.user/A3842A2/sources/per/t/2471C01
   .Rproj.user/A3842A2/sources/per/t/2471C01-contents
   .Rproj.user/A3842A2/sources/per/t/47D53AD7
   .Rproj.user/A3842A2/sources/per/t/47D53AD7-contents
   .Rproj.user/A3842A2/sources/per/t/49C9B43A
   .Rproj.user/A3842A2/sources/per/t/49C9B43A-contents
   .Rproj.user/A3842A2/sources/per/t/6986E661
   .Rproj.user/A3842A2/sources/per/t/6986E661-contents
   .Rproj.user/A3842A2/sources/per/u/
   .Rproj.user/A3842A2/sources/prop/
   .Rproj.user/A3842A2/sources/prop/2ACFA351
   .Rproj.user/A3842A2/sources/prop/33C8794C
   .Rproj.user/A3842A2/sources/prop/407AA38F
   .Rproj.user/A3842A2/sources/prop/602CEC1E
   .Rproj.user/A3842A2/sources/prop/8DB0797E
   .Rproj.user/A3842A2/sources/prop/INDEX
   .Rproj.user/A3842A2/viewer-cache/
   .Rproj.user/shared/
   .Rproj.user/shared/notebooks/
   .Rproj.user/shared/notebooks/patch-chunk-names
   .Rproj.user/shared/notebooks/paths
   COPYING
   DESCRIPTION
   NAMESPACE
   NEWS
   R/
   R/.Rhistory
   R/AllClasses.R
   R/AuxMethodforPPR.R
   R/CPoint.R
   R/CarmaNoise.R
   R/CholeskyfGn.R
   R/ClassCogarch.R
   R/DataPPR.R
   R/DiagnosticCarma.R
   R/DiagnosticCogarch.R
   R/FunctionAndOperators.R
   R/IC.R
   R/MM.COGARCH.R
   R/MethodForLaw.R
   R/NewClasses.R
   R/PointProcessClasses.R
   R/PseudoLogLikCOGARCH.R
   R/RcppExports.R
   R/WoodChanfGn.R
   R/adaBayes.R
   R/asymptotic_term_second.R
   R/asymptotic_term_third.R
   R/asymptotic_term_third_function.R
   R/bns.test.R
   R/cce.R
   R/cogarchNoise.R
   R/hyavar.R
   R/lambdaPPR.R
   R/lasso.R
   R/limiting.gamma.R
   R/llag.R
   R/llag.test.R
   R/lse.R
   R/lseBayes.R
   R/mllag.R
   R/mmfrac.R
   R/mpv.R
   R/noisy.sampling.R
   R/phi.test.R
   R/poisson.random.sampling.R
   R/qgv.R
   R/qmle.R
   R/qmleLevy.R
   R/rng.R
   R/sampling2grid.R
   R/setCarma.R
   R/setCogarch.R
   R/setHawkes.R
   R/setMultiModel.R
   R/setPoisson.R
   R/setPpr.R
   R/sim.euler.R
   R/sim.euler.space.discretized.R
   R/simCP.R
   R/simFunctional.R
   R/simulate.R
   R/simulateForMapsIntegralAndOperator.R
   R/simulateForPpr.R
   R/simulateMultiProcess.R
   R/spectralcov.R
   R/subsampling.R
   R/toLatex.R
   R/yuima.R
   R/yuima.characteristic.R
   R/yuima.data.R
   R/yuima.functional.R
   R/yuima.law.r
   R/yuima.model.R
   R/yuima.sampling.R
   R/zzz.R
   data/
   data/LogSPX.rda
   data/MWK151.rda
   inst/
   inst/AUTHORS
   inst/CITATION
   inst/COPYRIGHTS
   inst/ybook/
   inst/ybook/chapter1.R
   inst/ybook/chapter2.R
   inst/ybook/chapter3.R
   inst/ybook/chapter4.R
   inst/ybook/chapter5.R
   inst/ybook/chapter6.R
   inst/ybook/chapter7.R
   man/
   man/CPoint.Rd
   man/CarmaNoise.Rd
   man/DataPpr.Rd
   man/Diagnostic.Carma.Rd
   man/Diagnostic.Cogarch.Rd
   man/IC.Rd
   man/Integral.sde.rd
   man/Integrand.rd
   man/Intensity.PPR.Rd
   man/LawMethods.Rd
   man/LogSPX.Rd
   man/MWK151.Rd
   man/adaBayes.Rd
   man/asymptotic_term.Rd
   man/bns.test.Rd
   man/carma.info-class.Rd
   man/cce.Rd
   man/cogarch.est.incr.rd
   man/cogarch.est.rd
   man/cogarch.info-class.Rd
   man/cogarchNoise.Rd
   man/get.counting.data.Rd
   man/gmm.rd
   man/hyavar.Rd
   man/info.Map.Rd
   man/info.Ppr.Rd
   man/lambdaFromData.Rd
   man/lasso.Rd
   man/limiting.gamma.Rd
   man/llag.Rd
   man/llag.test.Rd
   man/lseBayes.Rd
   man/mllag.Rd
   man/mmfrac.Rd
   man/model.parameter-class.Rd
   man/mpv.Rd
   man/noisy.sampling.Rd
   man/param.Integral.rd
   man/param.Map.Rd
   man/phi.test.Rd
   man/poisson.random.sampling.Rd
   man/qgv.Rd
   man/qmle.Rd
   man/qmleLevy.Rd
   man/rconst.Rd
   man/rng.Rd
   man/setCarma.Rd
   man/setCharacteristic.Rd
   man/setCogarch.Rd
   man/setData.Rd
   man/setFunctional.Rd
   man/setHawkes.Rd
   man/setIntegral.Rd
   man/setLaw.Rd
   man/setMap.Rd
   man/setModel.Rd
   man/setPoisson.Rd
   man/setPpr.Rd
   man/setSampling.Rd
   man/setYuima.Rd
   man/simFunctional.Rd
   man/simulate.Rd
   man/spectralcov.Rd
   man/subsampling.Rd
   man/toLatex.Rd
   man/variable.Integral.rd
   man/yuima-class.Rd
   man/yuima.CP.qmle-class.Rd
   man/yuima.Hawkes.Rd
   man/yuima.Integral-class.rd
   man/yuima.Map-class.Rd
   man/yuima.PPR.qmle-class.Rd
   man/yuima.Ppr.Rd
   man/yuima.carma-class.Rd
   man/yuima.carma.qmle-class.Rd
   man/yuima.characteristic-class.Rd
   man/yuima.cogarch-class.Rd
   man/yuima.data-class.Rd
   man/yuima.functional-class.Rd
   man/yuima.law-class.rd
   man/yuima.model-class.Rd
   man/yuima.multimodel.Rd
   man/yuima.poisson-class.Rd
   man/yuima.sampling-class.Rd
   src/
   src/IntensityEval.cpp
   src/Makevars
   src/Makevars.win
   src/MpCN.cpp
   src/Mt.h
   src/PseudoLoglikCOGARCH.c
   src/RcppExports.cpp
   src/carmafilter.c
   src/cce_functions.c
   src/euler.c
   src/minusquasilogl_W1andW2.cpp
   src/pseudoLogLikCogarchIrregularGrid.cpp
   src/qmlecpp.cpp
   src/rng.c
   src/yuima_init.c
   yuima.Rproj
Log:


Added: .Rbuildignore
===================================================================
--- .Rbuildignore	                        (rev 0)
+++ .Rbuildignore	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,2 @@
+^.*\.Rproj$
+^\.Rproj\.user$

Added: .Rhistory
===================================================================
--- .Rhistory	                        (rev 0)
+++ .Rhistory	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,51 @@
+require(Rcpp)
+require(RcppArmadillo)
+debugSource('~/YUIMA/yuima/yuima/R/asymptotic_term_third.R', echo=TRUE)
+require(yuima)
+debugSource('~/YUIMA/yuima/yuima/R/asymptotic_term_third.R', echo=TRUE)
+# to the Black-Scholes economy:
+# dXt^e = Xt^e * dt + e * Xt^e * dWt
+diff.matrix <- "x*e"
+model <- setModel(drift = "x", diffusion = diff.matrix)
+# call option is evaluated by averating
+# max{ (1/T)*int_0^T Xt^e dt, 0}, the first argument is the functional of interest:
+Terminal <- 1
+xinit <- c(1)
+f <- list( c(expression(x/Terminal)), c(expression(0)))
+F <- 0
+division <- 1000
+e <- 4
+yuima <- setYuima(model = model, sampling = setSampling(Terminal=Terminal, n=division))
+yuima <- setFunctional( yuima, xinit=xinit, f=f,F=F,e=e)
+g <- function(x) get_ge(x,epsilon=e,K=1,F0=F0)
+set.seed(123)
+asymp <- asymptotic_term(yuima, block=10, rho,g)
+debug(getf)
+yuima at functional
+source('~/YUIMA/yuima/yuima/R/asymptotic_term_third_function.R', echo=TRUE)
+asymp <- asymptotic_term(yuima, block=10, rho,g)
+source('~/YUIMA/yuima/yuima/R/simFunctional.R', echo=TRUE)
+asymp <- asymptotic_term(yuima, block=10, rho,g)
+X.t0
+plot(X.t0)
+expand.var
+yuima
+yuima at data
+yuima at model
+yuima at model@drift
+yuima at model@diffusion
+e
+yuima at model@xinit
+division
+delta
+dx.drift
+de.drift
+dede.drift
+dx.diffusion
+Y
+plot(Y)
+plot(Y)
+get_e_f0
+mu
+sigma
+Sigma

Added: .Rproj.user/A3842A2/console06/INDEX001
===================================================================
--- .Rproj.user/A3842A2/console06/INDEX001	                        (rev 0)
+++ .Rproj.user/A3842A2/console06/INDEX001	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1 @@
+[]
\ No newline at end of file

Added: .Rproj.user/A3842A2/cpp-complilation-config
===================================================================
--- .Rproj.user/A3842A2/cpp-complilation-config	                        (rev 0)
+++ .Rproj.user/A3842A2/cpp-complilation-config	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,15 @@
+{
+    "args" : [
+        "-IC:/Program Files/RStudio/resources/libclang/builtin-headers/3.4",
+        "-IC:/RBuildTools/3.4/mingw_64/x86_64-w64-mingw32/include",
+        "-IC:/RBuildTools/3.4/mingw_64/x86_64-w64-mingw32/include/c++",
+        "-IC:/RBuildTools/3.4/mingw_64/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32",
+        "-IC:/Users/Emanuele/Documents/R/win-library/3.4/Rcpp/include",
+        "-IC:/Users/Emanuele/Documents/R/win-library/3.4/RcppArmadillo/include",
+        "-IC:/PROGRA~1/R/R-34~1.3/include",
+        "-DNDEBUG"
+    ],
+    "hash" : "154443275215262649511526264951",
+    "is_cpp" : true,
+    "pch" : "Rcpp"
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/cpp-definition-cache
===================================================================
--- .Rproj.user/A3842A2/cpp-definition-cache	                        (rev 0)
+++ .Rproj.user/A3842A2/cpp-definition-cache	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,470 @@
+[
+    {
+        "definitions" : [
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/IntensityEval.cpp",
+                "kind" : 6,
+                "line" : 5,
+                "name" : "evalKernelCpp(StringMatrix, ExpressionVector, Environment, Environment, LogicalVector, LogicalVector, NumericVector, IntegerVector, StringVector, StringVector)",
+                "parent_name" : "",
+                "usr" : "c:@F at evalKernelCpp#$@N at Rcpp@C at Matrix>#VI16#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI20#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Environment_Impl>#@N at Rcpp@CT>1#T at PreserveStorage#S2_#$@N at Rcpp@C at Vector>#VI10#@N at Rcpp@CT>1#T at PreserveStorage#S3_#$@N at Rcpp@C at Vector>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI13#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI16#@N at Rcpp@CT>1#T at PreserveStorage#S6_#"
+            },
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/IntensityEval.cpp",
+                "kind" : 6,
+                "line" : 97,
+                "name" : "evalKernelCpp2(StringMatrix, ExpressionVector, Environment, Environment, LogicalVector, StringVector, StringVector, LogicalVector, LogicalVector, List, IntegerVector, StringVector, StringVector)",
+                "parent_name" : "",
+                "usr" : "c:@F at evalKernelCpp2#$@N at Rcpp@C at Matrix>#VI16#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI20#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Environment_Impl>#@N at Rcpp@CT>1#T at PreserveStorage#S2_#$@N at Rcpp@C at Vector>#VI10#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI16#@N at Rcpp@CT>1#T at PreserveStorage#S4_#S3_#S3_#$@N at Rcpp@C at Vector>#VI19#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI13#@N at Rcpp@CT>1#T at PreserveStorage#S4_#S4_#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/IntensityEval.cpp",
+        "file_last_write" : 1544432752
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/MpCN.cpp",
+                "kind" : 6,
+                "line" : 15,
+                "name" : "sqnorm(NumericVector)",
+                "parent_name" : "",
+                "usr" : "c:@F at sqnorm#$@N at Rcpp@C at Vector>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#"
+            },
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/MpCN.cpp",
+                "kind" : 6,
+                "line" : 25,
+                "name" : "makeprop(NumericVector, NumericVector, NumericVector, NumericVector)",
+                "parent_name" : "",
+                "usr" : "c:@F at makeprop#$@N at Rcpp@C at Vector>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#S0_#S0_#S0_#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/MpCN.cpp",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 64,
+                "name" : "init_genrand(unsigned long)",
+                "parent_name" : "",
+                "usr" : "c:@F at init_genrand#l#"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 83,
+                "name" : "init_by_array(unsigned long *, int)",
+                "parent_name" : "",
+                "usr" : "c:@F at init_by_array#*l#I#"
+            },
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 109,
+                "name" : "genrand_int32",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_int32#"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 147,
+                "name" : "genrand_int31",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_int31#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 153,
+                "name" : "genrand_real1",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_real1#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 160,
+                "name" : "genrand_real2",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_real2#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 167,
+                "name" : "genrand_real3",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_real3#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+                "kind" : 6,
+                "line" : 174,
+                "name" : "genrand_res53",
+                "parent_name" : "",
+                "usr" : "c:@F at genrand_res53#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/Mt.h",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/PseudoLoglikCOGARCH.c",
+                "kind" : 6,
+                "line" : 54,
+                "name" : "pseudoLoglik_COGARCH1(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)",
+                "parent_name" : "",
+                "usr" : "c:@F at pseudoLoglik_COGARCH1"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/PseudoLoglikCOGARCH.c",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/carmafilter.c",
+                "kind" : 6,
+                "line" : 52,
+                "name" : "carma_tmp(SEXP, SEXP, SEXP)",
+                "parent_name" : "",
+                "usr" : "c:@F at carma_tmp"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/carmafilter.c",
+                "kind" : 6,
+                "line" : 108,
+                "name" : "Cycle_Carma(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)",
+                "parent_name" : "",
+                "usr" : "c:@F at Cycle_Carma"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/carmafilter.c",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 6,
+                "name" : "ctsubsampling(double *, double *, int *, int *, int *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at ctsubsampling"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 28,
+                "name" : "refreshsampling(int *, int *, double *, double *, int *, int *, double *, int *, int *)",
+                "parent_name" : "",
+                "usr" : "c:@F at refreshsampling"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 84,
+                "name" : "refreshsamplingphy(int *, int *, double *, double *, int *, int *, double *, int *, int *, int *)",
+                "parent_name" : "",
+                "usr" : "c:@F at refreshsamplingphy"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 132,
+                "name" : "bibsynchro(double *, double *, int *, int *, int *, int *, int *, int *, int *)",
+                "parent_name" : "",
+                "usr" : "c:@F at bibsynchro"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 222,
+                "name" : "HayashiYoshida(int *, int *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at HayashiYoshida"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 255,
+                "name" : "pHayashiYoshida(int *, int *, int *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at pHayashiYoshida"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 277,
+                "name" : "msrc(int *, int *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at msrc"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 291,
+                "name" : "HYcrosscov(int *, int *, int *, double *, double *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at HYcrosscov"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 332,
+                "name" : "HYcrosscorr(int *, int *, int *, double *, double *, double *, double *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at HYcrosscorr"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 393,
+                "name" : "HYcrosscov2(int *, int *, int *, double *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at HYcrosscov2"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 443,
+                "name" : "HYcrosscorr2(int *, int *, int *, double *, double *, double *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at HYcrosscorr2"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 513,
+                "name" : "hyavar(double *, double *, int *, int *, double *, double *, int *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at hyavar"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 662,
+                "name" : "hycrossavar(double *, double *, double *, int *, int *, int *, double *, double *, int *, double *, double *, double *, double *, double *, double *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at hycrossavar"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+                "kind" : 6,
+                "line" : 829,
+                "name" : "krprod(double *, int *, int *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at krprod"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/cce_functions.c",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/euler.c",
+                "kind" : 6,
+                "line" : 14,
+                "name" : "euler(SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP, SEXP)",
+                "parent_name" : "",
+                "usr" : "c:@F at euler"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/euler.c",
+        "file_last_write" : 1544432752
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/minusquasilogl_W1andW2.cpp",
+                "kind" : 6,
+                "line" : 31,
+                "name" : "W1(NumericMatrix, NumericMatrix, NumericMatrix, double)",
+                "parent_name" : "",
+                "usr" : "c:@F at W1#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#S0_#S0_#d#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/minusquasilogl_W1andW2.cpp",
+                "kind" : 6,
+                "line" : 54,
+                "name" : "W2(NumericMatrix, NumericMatrix, double)",
+                "parent_name" : "",
+                "usr" : "c:@F at W2#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#S0_#d#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/minusquasilogl_W1andW2.cpp",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/pseudoLogLikCogarchIrregularGrid.cpp",
+                "kind" : 6,
+                "line" : 41,
+                "name" : "Irregular_PseudoLoglik_COG(int, arma::mat, arma::mat, arma::mat, double, double, double, double, double, arma::rowvec, arma::colvec, arma::colvec, arma::colvec, arma::vec, arma::vec)",
+                "parent_name" : "",
+                "usr" : "c:@F at Irregular_PseudoLoglik_COG#I#$@N at arma@C at Mat>#d#S0_#S0_#d#d#d#d#d#$@N at arma@C at Row>#d#$@N at arma@C at Col>#d#S2_#S2_#S2_#S2_#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/pseudoLogLikCogarchIrregularGrid.cpp",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+                "kind" : 6,
+                "line" : 11,
+                "name" : "detcpp(NumericMatrix)",
+                "parent_name" : "",
+                "usr" : "c:@F at detcpp#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#"
+            },
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+                "kind" : 6,
+                "line" : 30,
+                "name" : "Smake(NumericVector, int)",
+                "parent_name" : "",
+                "usr" : "c:@F at Smake#$@N at Rcpp@C at Vector>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#I#"
+            },
+            {
+                "column" : 15,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+                "kind" : 6,
+                "line" : 44,
+                "name" : "solvecpp(NumericMatrix)",
+                "parent_name" : "",
+                "usr" : "c:@F at solvecpp#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+                "kind" : 6,
+                "line" : 71,
+                "name" : "sub_f(NumericMatrix, NumericVector)",
+                "parent_name" : "",
+                "usr" : "c:@F at sub_f#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#$@N at Rcpp@C at Vector>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+                "kind" : 6,
+                "line" : 83,
+                "name" : "likndim(NumericMatrix, NumericMatrix, NumericMatrix, double)",
+                "parent_name" : "",
+                "usr" : "c:@F at likndim#$@N at Rcpp@C at Matrix>#VI14#@N at Rcpp@CT>1#T at PreserveStorage#S0_#S0_#d#"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/qmlecpp.cpp",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+                "kind" : 6,
+                "line" : 17,
+                "name" : "rGIG(int *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at rGIG"
+            },
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+                "kind" : 6,
+                "line" : 124,
+                "name" : "rpts(int *, double *, double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at rpts"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+                "kind" : 6,
+                "line" : 140,
+                "name" : "qdens(double, double *, double)",
+                "parent_name" : "",
+                "usr" : "c:@F at qdens"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+                "kind" : 6,
+                "line" : 146,
+                "name" : "rps(double *, double *, double *)",
+                "parent_name" : "",
+                "usr" : "c:@F at rps"
+            },
+            {
+                "column" : 8,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+                "kind" : 6,
+                "line" : 157,
+                "name" : "rexp",
+                "parent_name" : "",
+                "usr" : "c:@F at rexp"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/rng.c",
+        "file_last_write" : 1526264951
+    },
+    {
+        "definitions" : [
+            {
+                "column" : 6,
+                "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/yuima_init.c",
+                "kind" : 6,
+                "line" : 84,
+                "name" : "R_init_yuima(DllInfo *)",
+                "parent_name" : "",
+                "usr" : "c:@F at R_init_yuima"
+            }
+        ],
+        "file" : "C:/Users/Emanuele/Documents/YUIMA/yuima/yuima/src/yuima_init.c",
+        "file_last_write" : 1544432752
+    }
+]
\ No newline at end of file

Added: .Rproj.user/A3842A2/pcs/debug-breakpoints.pper
===================================================================
--- .Rproj.user/A3842A2/pcs/debug-breakpoints.pper	                        (rev 0)
+++ .Rproj.user/A3842A2/pcs/debug-breakpoints.pper	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,6 @@
+{
+    "debugBreakpointsState" : {
+        "breakpoints" : [
+        ]
+    }
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/pcs/files-pane.pper
===================================================================
--- .Rproj.user/A3842A2/pcs/files-pane.pper	                        (rev 0)
+++ .Rproj.user/A3842A2/pcs/files-pane.pper	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,9 @@
+{
+    "path" : "~/YUIMA/yuima/yuima/R",
+    "sortOrder" : [
+        {
+            "ascending" : true,
+            "columnIndex" : 2
+        }
+    ]
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/pcs/source-pane.pper
===================================================================
--- .Rproj.user/A3842A2/pcs/source-pane.pper	                        (rev 0)
+++ .Rproj.user/A3842A2/pcs/source-pane.pper	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,3 @@
+{
+    "activeTab" : 0
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/pcs/windowlayoutstate.pper
===================================================================
--- .Rproj.user/A3842A2/pcs/windowlayoutstate.pper	                        (rev 0)
+++ .Rproj.user/A3842A2/pcs/windowlayoutstate.pper	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,14 @@
+{
+    "left" : {
+        "panelheight" : 757,
+        "splitterpos" : 184,
+        "topwindowstate" : "NORMAL",
+        "windowheight" : 796
+    },
+    "right" : {
+        "panelheight" : 757,
+        "splitterpos" : 477,
+        "topwindowstate" : "NORMAL",
+        "windowheight" : 796
+    }
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/pcs/workbench-pane.pper
===================================================================
--- .Rproj.user/A3842A2/pcs/workbench-pane.pper	                        (rev 0)
+++ .Rproj.user/A3842A2/pcs/workbench-pane.pper	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,6 @@
+{
+    "TabSet1" : 0,
+    "TabSet2" : 1,
+    "TabZoom" : {
+    }
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/rmd-outputs
===================================================================
--- .Rproj.user/A3842A2/rmd-outputs	                        (rev 0)
+++ .Rproj.user/A3842A2/rmd-outputs	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,5 @@
+
+
+
+
+

Added: .Rproj.user/A3842A2/saved_source_markers
===================================================================
--- .Rproj.user/A3842A2/saved_source_markers	                        (rev 0)
+++ .Rproj.user/A3842A2/saved_source_markers	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1 @@
+{"active_set":"","sets":[]}
\ No newline at end of file

Added: .Rproj.user/A3842A2/sources/per/t/2471C01
===================================================================
--- .Rproj.user/A3842A2/sources/per/t/2471C01	                        (rev 0)
+++ .Rproj.user/A3842A2/sources/per/t/2471C01	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,22 @@
+{
+    "collab_server" : "",
+    "contents" : "",
+    "created" : 1544432917389.000,
+    "dirty" : false,
+    "encoding" : "UTF-8",
+    "folds" : "",
+    "hash" : "2850163453",
+    "id" : "2471C01",
+    "lastKnownWriteTime" : 1526264950,
+    "last_content_update" : 1526264950,
+    "path" : "~/YUIMA/yuima/yuima/R/asymptotic_term_third.R",
+    "project_path" : "R/asymptotic_term_third.R",
+    "properties" : {
+        "cursorPosition" : "19,28",
+        "scrollLine" : "11"
+    },
+    "relative_order" : 1,
+    "source_on_save" : false,
+    "source_window" : "",
+    "type" : "r_source"
+}
\ No newline at end of file

Added: .Rproj.user/A3842A2/sources/per/t/2471C01-contents
===================================================================
--- .Rproj.user/A3842A2/sources/per/t/2471C01-contents	                        (rev 0)
+++ .Rproj.user/A3842A2/sources/per/t/2471C01-contents	2019-09-22 20:36:42 UTC (rev 714)
@@ -0,0 +1,1430 @@
+
+yuima.warn <- function(x){
+	cat(sprintf("\nYUIMA: %s\n", x))
+}
+
+# in this source we note formulae like latex
+
+
+setGeneric("asymptotic_term",
+		function(yuima,block=100, rho, g, expand.var="e")
+ 		standardGeneric("asymptotic_term"))
+
+setMethod("asymptotic_term",signature(yuima="yuima"),
+	    function(yuima,block=100, rho, g, expand.var="e"){
+
+	if(is.null(yuima at model)) stop("model object is missing!")
+	if(is.null(yuima at sampling)) stop("sampling object is missing!")
+	if(is.null(yuima at functional)) stop("functional object is missing!")
+
+	f <- getf(yuima at functional)
+	F <- getF(yuima at functional)
+
+	##:: fix bug 07/23
+	#e <- gete(yuima at functional)
+	assign(expand.var, gete(yuima at functional))
+
+	Terminal <- yuima at sampling@Terminal[1]
+	division <- yuima at sampling@n[1]
+	xinit <- getxinit(yuima at functional)
+	state <- yuima at model@state.variable
+	V0 <- yuima at model@drift
+	V <- yuima at model@diffusion
+	r.size <- yuima at model@noise.number
+	d.size <- yuima at model@equation.number
+	k.size <- length(F)
+
+	print("compute X.t0")
+	X.t0 <- Get.X.t0(yuima, expand.var=expand.var)
+	delta <- deltat(X.t0)
+
+	##:: fix bug 07/23
+	pars <- expand.var #yuima at model@parameter at all[1]  #epsilon
+	
+	# fix bug 20110628
+	if(k.size==1){
+		G <- function(x){
+			n <- length(x)
+			res <- numeric(0)
+			for(i in 1:n){
+				res <- append(res,g(x[i]))
+			}
+			return(res)
+		}
+	}else{
+		G <- function(x) return(g(x))
+	}
+
+
+	# function to return symbolic derivatives of myfunc by mystate(multi-state)
+
+	Derivation.vector <- function(myfunc,mystate,dim1,dim2){
+
+		tmp <- vector(dim1*dim2,mode="expression")
+
+		for(i in 1:dim1){
+		  for(j in 1:dim2){
+		    tmp[(i-1)*dim2+j] <- parse(text=deparse(D(myfunc[i],mystate[j])))
+		  }
+		}
+
+		return(tmp)
+	}
+
+	# function to return symbolic derivatives of myfunc by mystate(single state)
+
+	Derivation.scalar <- function(myfunc,mystate,dim){
+
+		tmp <- vector(dim,mode="expression")
+
+		for(i in 1:dim){
+			tmp[i] <- parse(text=deparse(D(myfunc[i],mystate)))
+		}
+		return(tmp)
+	}
+
+
+	# function to solve Y_{t} (between (13.9) and (13.10)) using runge kutta method. Y_{t} is GL(d) valued (matrices)
+
+	Get.Y <- function(env){
+
+		## init
+		dt <- env$delta
+		assign(pars,0)  ## epsilon=0
+		Yinit <- as.vector(diag(d.size))
+		Yt <- Yinit
+		Y <- Yinit
+		k <- numeric(d.size*d.size)
+		k1 <- numeric(d.size*d.size)
+		k2 <- numeric(d.size*d.size)
+		k3 <- numeric(d.size*d.size)
+		k4 <- numeric(d.size*d.size)
+		Ystate <- paste("y",1:(d.size*d.size),sep="")
+
+		F <- NULL
+		F.n <- vector(d.size,mode="expression")
+		for(n in 1:d.size){
+ 		  for(i in 1:d.size){
+		    F.tmp <- dx.drift[((i-1)*d.size+1):(i*d.size)]
+
+		    F.n[i] <- parse(text=paste(paste("(",F.tmp,")","*",
+					  Ystate[((n-1)*d.size+1):(n*d.size)],sep=""),
+					  collapse="+"))
+		  }
+		  F <- append(F,F.n)
+		}
+
+		## runge kutta
+		for(t in 1:(division-1)){
+
+		  ## Xt
+		  for(i in 1:d.size){
+		    assign(state[i],X.t0[t,i])   ## state[i] is x_i, for example.
+		  }
+
+		  ## k1
+		  for(i in 1:(d.size*d.size)){
+		    assign(Ystate[i],Yt[i])
+		  }
+
+		  for(i in 1:(d.size*d.size)){
+		    k1[i] <- dt*eval(F[i])
+		  }
+
+		  ## k2
+		  for(i in 1:(d.size*d.size)){
+		    assign(Ystate[i],Yt[i]+k1[i]/2)
+		  }
+
+		  for(i in 1:(d.size*d.size)){
+		    k2[i] <- dt*eval(F[i])
+		  }
+
+		  ## k3
+		  for(i in 1:(d.size*d.size)){
+		    assign(Ystate[i],Yt[i]+k2[i]/2)
+		  }
+
+		  for(i in 1:(d.size*d.size)){
+		    k3[i] <- dt*eval(F[i])
+		  }
+
+		  ## k4
+##modified
+		  ## Xt+1
+		  for(i in 1:d.size){
+		    assign(state[i],X.t0[t+1,i])   
+		  }
+##
+
+		  for(i in 1:(d.size*d.size)){
+		    assign(Ystate[i],Yt[i]+k3[i])
+		  }
+
+		  for(i in 1:(d.size*d.size)){
+		    k4[i] <- dt*eval(F[i])
+		  }
+
+		  ## F(Y(t+dt))
+		  k <- (k1+k2+k2+k3+k3+k4)/6
+		  Yt <- Yt+k
+		  Y <- rbind(Y,Yt)
+		}
+
+		## return matrix : (division+1)*(d.size*d.size)
+		rownames(Y) <- NULL
+		colnames(Y) <- Ystate
+		return(ts(Y,deltat=dt,start=0))  
+	}
+
+
+	#l*t
+
+	e_F <- function(X.t0,tmp.F,env){
+
+		d.size <- env$d.size
+		k.size <- env$k.size
+		division <- env$division
+
+		result <- matrix(0,k.size,division)
+
+		assign(pars[1],0)
+
+		de.F <- list()
+
+		for(k in 1:k.size){
+		  de.F[[k]] <- parse(text=deparse(D(tmp.F[k],pars[1])))
+		}
+
+		for(t in 1:division){
+		  for(d in 1:d.size){
+		    assign(state[d],X.t0[t,d])
+		  }
+
+		  for(k in 1:k.size){
+		    result[k,t] <- eval(de.F[[k]])
+		  }
+		}
+
+		return(result)
+	}
+
+
+	# function to calculate mu in thesis p5
+	funcmu <- function(e=0,env){
+
+		d.size <- env$d.size
+		k.size <- env$k.size
+		division <- env$division
+		delta <- env$delta
+
+		n1 <- length(get_e_f0)
+		n2 <- sum(get_e_f0 == 0)
+
+		n3 <- length(get_e_F)
+		n4 <- sum(get_e_F == 0)
+
+		n <- (n1 - n2 != 0) * (n3 - n4 != 0)
+
+		if(n == 0){
+			mu1 <- double(k.size)
+		}else{
+			mu1 <- apply(get_e_f0,1,sum) * delta + get_e_F[,division]
+		}
+
+		n5 <- length(get_Y_e_V0)
+		n6 <- sum(get_Y_e_V0 == 0)
+
+		n <- n5 - n6
+
+		if(n == 0){
+			mu2 <- double(k.size)
+		}else{
+			n7 <- length(get_x_F)
+			n8 <- sum(get_x_F == 0)
+
+			n <- n7 - n8
+
+			if(n == 0){
+				mu2_1 <- double(k.size)
+			}else{
+				mu2_1 <- matrix(get_x_F[,,division],k.size,d.size) %*% 
+					   tmpY[,,d.size] %*% matrix(apply(get_Y_e_V0,1,sum),d.size,1) *
+					   delta
+			}
+
+			n9 <- length(get_x_f0)
[TRUNCATED]

To get the complete diff run:
    svnlook diff /svnroot/yuima -r 714


More information about the Yuima-commits mailing list