Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jianxiaoyang committed Oct 31, 2023
1 parent a4066f6 commit ee8ba5a
Show file tree
Hide file tree
Showing 13 changed files with 68 additions and 4 deletions.
1 change: 1 addition & 0 deletions R/GetFrineGrayWeights.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#'
#' @param ftime Numeric: Observed event (failure) times
#' @param fstatus Numeric: Observed event (failure) types
#' @param cvweights Numeric: Vector of 0/1 (cross-validation) weights for each data row
#' @param cencode Numeric: Code to denote censored observations (Default is 0)
#' @param failcode Numeric: Code to denote event of interest (Default is 1)
#'
Expand Down
10 changes: 7 additions & 3 deletions R/Gpu.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#
#

#' @title Set GPU device
#'
#' @description
#' \code{setOpenCLDevice} set GPU device
#'
#' @param name String: Name of GPU device
#'
#' @export
setOpenCLDevice <- function(name) {
devices <- listOpenCLDevices()
Expand Down
2 changes: 2 additions & 0 deletions R/ModelFit.R
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,8 @@ print.cyclopsFit <- function(x, show.call=TRUE ,...) {
#' @param initialBound Numeric: Starting trust-region size
#' @param maxBoundCount Numeric: Maximum number of tries to decrease initial trust-region size
#' @param algorithm String: name of fitting algorithm to employ; default is `ccd`
#' @param doItAll Currently unused
#' @param syncCV Currently unused
#'
#' Todo: Describe convegence types
#'
Expand Down
6 changes: 6 additions & 0 deletions R/NewDataConversion.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ isSorted <- function(data, columnNames, ascending = rep(TRUE, length(columnNames
#' @param normalize String: Name of normalization for all non-indicator covariates (possible values: stdev, max, median)
#' @param quiet If true, (warning) messages are suppressed.
#' @param floatingPoint Specified floating-point representation size (32 or 64)
#' @param timeEffectMap A data frame or ffdf object containing the convariates that have time-varying effects on the outcome
#'
#' @details
#' These columns are expected in the outcome object:
Expand All @@ -55,6 +56,11 @@ isSorted <- function(data, columnNames, ascending = rep(TRUE, length(columnNames
#' \verb{covariateValue} \tab(real) \tab The value of the specified covariate \cr
#' }
#'
#' These columns are expected in the timeEffectMap object:
#' \tabular{lll}{
#' \verb{covariateId} \tab(integer) \tab A numeric identifier of the covariates that have time-varying effects on the outcome \cr
#' }
#'
#' @return
#' An object of type cyclopsData
#'
Expand Down
5 changes: 5 additions & 0 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@
.Call(`_Cyclops_cyclopsInitializeModel`, inModelData, modelType, computeDevice, computeMLE)
}

#' @title List available GPU devices
#'
#' @description
#' \code{listOpenCLDevices} list available GPU devices
#'
#' @export
listOpenCLDevices <- function() {
.Call(`_Cyclops_listOpenCLDevices`)
Expand Down
1 change: 1 addition & 0 deletions R/Simulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ simulateCyclopsData <- function(nstrata = 200,
#' @param model String: Fitted regression model type
#' @param coverage Logical: report coverage statistics
#' @param includePenalty Logical: include regularized regression penalty in computing profile likelihood based confidence intervals
#' @param computeDevice String: Name of compute device to employ; defaults to \code{"native"} C++ on CPU
#'
#' @export
fitCyclopsSimulation <- function(sim,
Expand Down
7 changes: 7 additions & 0 deletions man/convertToCyclopsData.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/createControl.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/fitCyclopsSimulation.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/getFineGrayWeights.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions man/listOpenCLDevices.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions man/setOpenCLDevice.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/RcppGpuInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
#include <cuda.h>
#endif // HAVE_CUDA

//' @title List available GPU devices
//'
//' @description
//' \code{listOpenCLDevices} list available GPU devices
//'
//' @export
// [[Rcpp::export("listOpenCLDevices")]]
Rcpp::CharacterVector listOpenCLDevices() {
Expand Down

0 comments on commit ee8ba5a

Please sign in to comment.