# seed PRNG
set.seed(1234)
# generate an initial fuzzy sample
list1<-SimulateSample(20,originalPD="rnorm",parOriginalPD=list(mean=0,sd=1),
incrCorePD="rexp", parIncrCorePD=list(rate=2),
suppLeftPD="runif",parSuppLeftPD=list(min=0,max=0.6),
suppRightPD="runif", parSuppRightPD=list(min=0,max=0.6),
type="trapezoidal")
# calculate the standard deviation using the standard epistemic bootstrap approach
EpistemicEstimator(list1$value,estimator="sd",cutsNumber = 30)
# calculate the median using the antithetic epistemic bootstrap approach
EpistemicEstimator(list1$value,estimator="median",cutsNumber = 30,bootstrapMethod="anti")
# use the epistemic bootstrap
list1Epistemic<-EpistemicBootstrap(list1$value,cutsNumber = 10)
# calculate the standard deviation using the obtained output
EpistemicEstimator(list1Epistemic,estimator="sd")
Run the code above in your browser using DataLab