Skip to content

Commit 899e002

Browse files
committed
export
Branch: as_distribution
1 parent 1febe19 commit 899e002

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ S3method("+",Distribution)
55
S3method("-",Distribution)
66
S3method("[",ParameterSet)
77
S3method("[",VectorDistribution)
8+
S3method(as.Distribution,matrix)
89
S3method(as.ParameterSet,data.table)
910
S3method(as.ParameterSet,list)
1011
S3method(as.data.table,ParameterSet)
@@ -96,6 +97,7 @@ export(VectorDistribution)
9697
export(Wald)
9798
export(Weibull)
9899
export(WeightedDiscrete)
100+
export(as.Distribution)
99101
export(as.MixtureDistribution)
100102
export(as.ParameterSet)
101103
export(as.ProductDistribution)

R/as.Distribution.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#' the distribution.
1313
#' @param decorators Passed to [VectorDistribution].
1414
#' @return A [VectorDistribution]
15+
#' @export
1516
#' @examples
1617
#' pdf <- runif(200)
1718
#' mat <- matrix(pdf, 20, 10)
@@ -22,6 +23,8 @@ as.Distribution <- function(obj, fun, decorators = NULL) {
2223
UseMethod("as.Distribution")
2324
}
2425

26+
#' @rdname as.Distribution
27+
#' @export
2528
as.Distribution.matrix <- function(obj, fun, decorators = NULL) {
2629
if (is.null(colnames(obj))) {
2730
stop("'obj' must have column names")

man/as.Distribution.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)