Skip to content

Commit 927cf78

Browse files
authored
adding returns in docus
1 parent 5e3077c commit 927cf78

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/interfaceR.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ using namespace Rcpp;
4949
//' setcovfs(om, c("mat25", "mat25", "mat25"))
5050
//' setcovfs(om, c("mat25", "mat25pow", "mat25", "mat25ang"))
5151
//' @seealso \code{\link{outermod}}
52+
//' @returns no value is returned, \code{om} is updated
5253
void setcovfs(outermod& om, StringVector covstr){
5354

5455
om.d = covstr.size();
@@ -89,6 +90,7 @@ void setcovfs(outermod& om, StringVector covstr){
8990
//' knotslist = list(seq(0,1,by=0.01),seq(0,1,by=0.01),seq(0,1,by=0.01))
9091
//' setknot(om, knotslist)
9192
//' @seealso \code{\link{outermod}}, \code{\link{setcovfs}}
93+
//' @returns no value is returned, \code{om} is updated
9294
void setknot(outermod& om, List L){
9395
if (!om.setcovfs) {
9496
throw std::range_error("Need to set cov. funcs before setting knots.");
@@ -225,6 +227,7 @@ RCPP_EXPOSED_CLASS(lpdf)
225227
//' @seealso \code{\link{outerbase}} the main product from an outermod
226228
//' @seealso \code{\link{setcovfs}}, \code{\link{setknot}},
227229
//' \code{\link{gethyp}}
230+
//' @returns no returns, this is a class which contains methods
228231

229232
//' @name outermod$updatehyp
230233
//' @title Update hyperparameters
@@ -234,6 +237,7 @@ RCPP_EXPOSED_CLASS(lpdf)
234237
//' }
235238
//' Updates the hyperparameters for the instance of outermod.
236239
//' @param hyp A vector of hyperparameters
240+
//' @returns no value is returned, the class instance is updated
237241
//' @seealso \code{\link{outermod}}
238242

239243
//' @name outermod$selectterms
@@ -293,6 +297,7 @@ RCPP_EXPOSED_CLASS(lpdf)
293297
//' terms = om$selectterms(40)
294298
//' basismat = ob$getmat(terms)
295299
//' @seealso \code{\link{outermod}} the core element that controls outerbase
300+
//' @returns no returns, this is a class which contains methods
296301

297302
//' @name outerbase$getbase
298303
//' @title Get base functions
@@ -327,6 +332,7 @@ RCPP_EXPOSED_CLASS(lpdf)
327332
//' Build (or re-build) a basis based on the recent evaluation
328333
//' of \code{\link{outermod}}.
329334
//' @seealso \code{\link{outerbase}}
335+
//' @returns nothing is returned, the class instance is updated
330336

331337
//' @name outerbase$matmul
332338
//' @title Matrix multiply
@@ -404,6 +410,7 @@ RCPP_EXPOSED_CLASS(lpdf)
404410
//' @seealso derived classes: \code{\link{loglik_std}},
405411
//' \code{\link{loglik_gauss}}, \code{\link{loglik_gda}},
406412
//' \code{\link{logpr_gauss}}
413+
//' @returns no returns, this is a class which contains methods
407414

408415
//' @name lpdfvec
409416
//' @aliases
@@ -428,6 +435,7 @@ RCPP_EXPOSED_CLASS(lpdf)
428435
//' @field lpdfvec$domarg A boolean that controls if marginal adjustment is
429436
//' done
430437
//' @seealso base class: \code{\link{lpdf}}
438+
//' @returns no returns, this is a class which contains methods
431439

432440
//' @name lpdf$optcg
433441
//' @title Optimization via Conjugate Gradient
@@ -442,6 +450,7 @@ RCPP_EXPOSED_CLASS(lpdf)
442450
//' @param epoch A positive integer representing the maximum number of steps
443451
//' conjugate gradient will take.
444452
//' @seealso \code{\link{lpdf}}
453+
//' @returns nothing is returned, the class instance is updated
445454

446455
//' @name lpdf$optnewton
447456
//' @title Optimization via Newton's Method
@@ -453,6 +462,7 @@ RCPP_EXPOSED_CLASS(lpdf)
453462
//' It currently is designed only for quadratic \code{\link{lpdf}} instances.
454463
//' It should take a single step.
455464
//' @seealso \code{\link{lpdf}}
465+
//' @returns nothing is returned, the class instance is updated
456466

457467
//' @name loglik_std
458468
//' @aliases
@@ -479,6 +489,7 @@ RCPP_EXPOSED_CLASS(lpdf)
479489
//' \code{om} and the same number of rows as \code{y}
480490
//' @inherit lpdf description
481491
//' @seealso base class: \code{\link{lpdf}}
492+
//' @returns no returns, this is a class which contains methods
482493

483494
//' @name loglik_gauss
484495
//' @aliases
@@ -505,6 +516,7 @@ RCPP_EXPOSED_CLASS(lpdf)
505516
//' \code{om} and the same number of rows as \code{y}
506517
//' @inherit lpdf description
507518
//' @seealso base class: \code{\link{lpdf}}
519+
//' @returns no returns, this is a class which contains methods
508520

509521
//' @name loglik_gda
510522
//' @aliases
@@ -530,6 +542,7 @@ RCPP_EXPOSED_CLASS(lpdf)
530542
//' \code{om} and the same number of rows as \code{y}
531543
//' @inherit lpdf description
532544
//' @seealso base class: \code{\link{lpdf}}
545+
//' @returns no returns, this is a class which contains methods
533546

534547
//' @name logpr_gauss
535548
//' @aliases
@@ -551,6 +564,7 @@ RCPP_EXPOSED_CLASS(lpdf)
551564
//' \code{om}
552565
//' @inherit lpdf description
553566
//' @seealso base class: \code{\link{lpdf}}
567+
//' @returns no returns, this is a class which contains methods
554568

555569
//' @name covf
556570
//' @aliases
@@ -571,6 +585,7 @@ RCPP_EXPOSED_CLASS(lpdf)
571585
//' @seealso derived class: \code{\link{covf_mat25}},
572586
//' \code{\link{covf_mat25pow}},
573587
//' \code{\link{covf_mat25ang}}
588+
//' @returns no returns, this is a class which contains methods
574589

575590
//' @name covf_mat25
576591
//' @aliases
@@ -584,6 +599,7 @@ RCPP_EXPOSED_CLASS(lpdf)
584599
//' \deqn{c(x_1,x_2) = (1+ |h| + h^2/3) \exp(-|h|) }
585600
//' where \eqn{h = (x_1-x_2)/\rho} and \eqn{\rho}=\code{exp(2*hyp[0])}.
586601
//' @seealso base class: \code{\link{covf}}
602+
//' @returns no returns, this is a class which contains methods
587603

588604
//' @name covf_mat25pow
589605
//' @aliases
@@ -600,6 +616,7 @@ RCPP_EXPOSED_CLASS(lpdf)
600616
//' dimensional vector with \eqn{\rho}=\code{exp(2*hyp[0]+0.25*hyp[1])}
601617
//' and \eqn{\alpha}=\code{exp(0.25*hyp[1])}.
602618
//' @seealso base class: \code{\link{covf}}
619+
//' @returns no returns, this is a class which contains methods
603620

604621
//' @name covf_mat25ang
605622
//' @aliases
@@ -617,6 +634,7 @@ RCPP_EXPOSED_CLASS(lpdf)
617634
//' \code{hyp} is a two dimensional vector with
618635
//' \eqn{\rho_s}=\code{exp(2*hyp[0])} and \eqn{\rho_c}=\code{exp(2*hyp[1])}.
619636
//' @seealso base class: \code{\link{covf}}
637+
//' @returns no returns, this is a class which contains methods
620638

621639

622640
//' @name predictor
@@ -638,6 +656,7 @@ RCPP_EXPOSED_CLASS(lpdf)
638656
//' @field predictor$var() return the vector of variances for the prediction
639657
//' @field predictor$setnthreads(k) specifics \code{k} as the number of threads
640658
//' to use
659+
//' @returns no returns, this is a class which contains methods
641660

642661
RCPP_MODULE(obmod){
643662
using namespace Rcpp;

0 commit comments

Comments
 (0)