newRangePriorData {MoTBFs} | R Documentation |
Computes the new domain of two datasets.
newRangePriorData(fPI, priorData, N, domain, s, POTENTIAL_TYPE)
fPI |
The fitted function 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