View source: R/priorKnowledge.R
newRangePriorData | R Documentation |
Computes the new domain of two datasets.
newRangePriorData(fPI, priorData, N, domain, s, POTENTIAL_TYPE)
fPI |
The function fitted to the prior data, of class |
priorData |
A |
N |
A |
domain |
A |
s |
A |
POTENTIAL_TYPE |
A |
A "numeric"
array which contains the new domain of the prior function.
## Data X <- rnorm(15) ## Prior Data priordata <- rnorm(5000) ## Learning type = "MTE" fPrior <- univMoTBF(priordata, POTENTIAL_TYPE = type) ## New range confident <- 5 ## confident <- 1,2,...,length(X) domain <- range(X) N <- length(X) newRange <- newRangePriorData(fPrior, priorData = priordata, N = N, domain = domain, s = confident, POTENTIAL_TYPE = type) newRange
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.