[Yuima-commits] r409 - in pkg/yuima: . R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Mar 2 15:06:09 CET 2016


Author: lorenzo
Date: 2016-03-02 15:06:09 +0100 (Wed, 02 Mar 2016)
New Revision: 409

Added:
   pkg/yuima/man/setMap.Rd
Removed:
   pkg/yuima/man/setMaps.Rd
Modified:
   pkg/yuima/DESCRIPTION
   pkg/yuima/NAMESPACE
   pkg/yuima/R/FunctionAndOperators.R
Log:
Modified setMaps.Rd in setMap.Rd

Modified: pkg/yuima/DESCRIPTION
===================================================================
--- pkg/yuima/DESCRIPTION	2016-03-02 12:37:49 UTC (rev 408)
+++ pkg/yuima/DESCRIPTION	2016-03-02 14:06:09 UTC (rev 409)
@@ -1,7 +1,7 @@
 Package: yuima
 Type: Package
 Title: The YUIMA Project Package for SDEs
-Version: 1.0.82
+Version: 1.0.83
 Depends: R(>= 2.10.0), methods, zoo, stats4, utils, expm, cubature, mvtnorm
 Author: YUIMA Project Team
 Maintainer: Stefano M. Iacus <stefano.iacus at unimi.it>

Modified: pkg/yuima/NAMESPACE
===================================================================
--- pkg/yuima/NAMESPACE	2016-03-02 12:37:49 UTC (rev 408)
+++ pkg/yuima/NAMESPACE	2016-03-02 14:06:09 UTC (rev 409)
@@ -120,7 +120,7 @@
 export(rconst)
 
 export(setCogarch)
-export(setMaps)
+export(setMap)
 export(setMultiModel)
 
 export(dim)

Modified: pkg/yuima/R/FunctionAndOperators.R
===================================================================
--- pkg/yuima/R/FunctionAndOperators.R	2016-03-02 12:37:49 UTC (rev 408)
+++ pkg/yuima/R/FunctionAndOperators.R	2016-03-02 14:06:09 UTC (rev 409)
@@ -1,6 +1,6 @@
 # Method for construction of function and operator of yuima
 # object
-setMaps <- function(func, yuima, out.var = "", nrow =1 ,ncol=1){
+setMap <- function(func, yuima, out.var = "", nrow =1 ,ncol=1){
   # A function has three kind of inputs
   # parameters that is a scalar
   # Process that is an object of class yuima

Added: pkg/yuima/man/setMap.Rd
===================================================================
--- pkg/yuima/man/setMap.Rd	                        (rev 0)
+++ pkg/yuima/man/setMap.Rd	2016-03-02 14:06:09 UTC (rev 409)
@@ -0,0 +1,73 @@
+\name{setMap}
+\alias{setMap}
+\alias{Map of SDE}
+\alias{Map of yuima}
+%- Also NEED an '\alias' for EACH other topic documented here.
+\title{
+Map of a Stochastic Differential Equation
+}
+\description{
+'\code{setMap}' is the constructor of an object of class \code{\link{yuima.Output}} that describes a map of a SDE
+}
+\usage{
+setMap(func, yuima, out.var = "", nrow = 1, ncol = 1)
+}
+%- maybe also 'usage' for other objects documented here.
+\arguments{
+  \item{func}{a matrix or a vector of strings that describe each component of the map.}
+  \item{yuima}{ an object of class \code{\link{yuima.model}} that is the SDE.}
+  \item{out.var}{ label for the output}
+  \item{nrow}{ dimension of output if \code{func} is a vector of string. }
+  \item{ncol}{ dimension of output if \code{func} is a vector of string.}
+}
+%\details{
+%%  ~~ If necessary, more details than the description above ~~
+%}
+\value{The constructor returns an object of class \code{\link{yuima.Output}}.}
+\references{Yuima Documentation}
+\author{The YUIMA Project Team}
+%\note{
+%%  ~~further notes~~
+%}
+%% ~Make other sections like Warning with \section{Warning }{....} ~
+%\seealso{
+%% ~~objects to See Also as \code{\link{help}}, ~~~
+%}
+\examples{
+
+\dontrun{
+# Definition of a yuima model
+mod <- setModel(drift=c("a1", "a2"),
+  diffusion = matrix(c("s1","0","0","s2"),2,2),
+  solve.variable = c("X","Y"))
+
+# Definition of a map
+my.Map <- matrix(c("(X+Y)","-X-Y",
+  "a*exp(X-a1*t)","b*exp(Y-a2*t)"),
+  nrow=2,ncol=2)
+
+# Construction of yuima.Output
+
+yuimaMap <- setMap(func = my.Map, yuima = mod,
+  out.var = c("f11","f21","f12","f22"))
+
+# Simulation of a Map
+
+set.seed(123)
+samp <- setSampling(0, 100,n = 1000)
+mypar <- list(a=1, b=1, s1=0.1, s2=0.2, a1=0.1, a2=0.1)
+sim1 <- simulate(object = yuimaMap, true.parameter = mypar,
+  sampling = samp)
+
+# plot
+
+plot(sim1, ylab = yuimaMap at Output@param at out.var,
+  main = "simulation Map", cex.main = 0.8)
+
+}
+
+}
+% Add one or more standard keywords, see file 'KEYWORDS' in the
+% R documentation directory.
+%\keyword{ ~kwd1 }
+%\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line

Deleted: pkg/yuima/man/setMaps.Rd
===================================================================
--- pkg/yuima/man/setMaps.Rd	2016-03-02 12:37:49 UTC (rev 408)
+++ pkg/yuima/man/setMaps.Rd	2016-03-02 14:06:09 UTC (rev 409)
@@ -1,73 +0,0 @@
-\name{setMaps}
-\alias{setMaps}
-\alias{Maps of SDE}
-\alias{Maps of yuima}
-%- Also NEED an '\alias' for EACH other topic documented here.
-\title{
-Maps of a Stochastic Differential Equation
-}
-\description{
-'\code{setMaps}' is the constructor of an object of class \code{\link{yuima.Output}} that describes a map of a SDE
-}
-\usage{
-setMaps(func, yuima, out.var = "", nrow = 1, ncol = 1)
-}
-%- maybe also 'usage' for other objects documented here.
-\arguments{
-  \item{func}{a matrix or a vector of strings that describe each component of the map.}
-  \item{yuima}{ an object of class \code{\link{yuima.model}} that is the SDE.}
-  \item{out.var}{ label for the output}
-  \item{nrow}{ dimension of output if \code{func} is a vector of string. }
-  \item{ncol}{ dimension of output if \code{func} is a vector of string.}
-}
-%\details{
-%%  ~~ If necessary, more details than the description above ~~
-%}
-\value{The constructor returns an object of class \code{\link{yuima.Output}}.}
-\references{Yuima Documentation}
-\author{The YUIMA Project Team}
-%\note{
-%%  ~~further notes~~
-%}
-%% ~Make other sections like Warning with \section{Warning }{....} ~
-%\seealso{
-%% ~~objects to See Also as \code{\link{help}}, ~~~
-%}
-\examples{
-
-\dontrun{
-# Definition of a yuima model
-mod <- setModel(drift=c("a1", "a2"),
-  diffusion = matrix(c("s1","0","0","s2"),2,2),
-  solve.variable = c("X","Y"))
-
-# Definition of a map
-my.Map <- matrix(c("(X+Y)","-X-Y",
-  "a*exp(X-a1*t)","b*exp(Y-a2*t)"),
-  nrow=2,ncol=2)
-
-# Construction of yuima.Output
-
-yuimaMap <- setMaps(func = my.Map, yuima = mod,
-  out.var = c("f11","f21","f12","f22"))
-
-# Simulation of a Map
-
-set.seed(123)
-samp <- setSampling(0, 100,n = 1000)
-mypar <- list(a=1, b=1, s1=0.1, s2=0.2, a1=0.1, a2=0.1)
-sim1 <- simulate(object = yuimaMap, true.parameter = mypar,
-  sampling = samp)
-
-# plot
-
-plot(sim1, ylab = yuimaMap at Output@param at out.var,
-  main = "simulation Map", cex.main = 0.8)
-
-}
-
-}
-% Add one or more standard keywords, see file 'KEYWORDS' in the
-% R documentation directory.
-%\keyword{ ~kwd1 }
-%\keyword{ ~kwd2 }% __ONLY ONE__ keyword per line



More information about the Yuima-commits mailing list