newRangePriorData {MoTBFs} | R Documentation |
Redefining the Domain
Description
Computes the new domain of two datasets.
Usage
newRangePriorData(fPI, priorData, N, domain, s, POTENTIAL_TYPE)
Arguments
fPI |
The function fitted to the prior data, of class |
priorData |
A |
N |
A |
domain |
A |
s |
A |
POTENTIAL_TYPE |
A |
Value
A "numeric"
array which contains the new domain of the prior function.
Examples
## 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
[Package MoTBFs version 1.4.1 Index]