| as.BDataFrequencyHistograms | R Documentation |
Only samples and BDataFrequencyHistograms themselfs can be effectively converted to histograms, because all other representations lack information on the certainty
as.BDataFrequencyHistograms(X, ...)
## S3 method for class 'BDataUnivariateSamples'
as.BDataFrequencyHistograms(
X,
breaks = "Sturges",
...,
basis = getBayesSpaceBasis(X)
)
X |
an object representing a dataset |
... |
further generic paramters for [hist] |
breaks |
the breaks parameters of the [hist] function for R |
basis |
the BayesSpaceBasis marking the BayesSpace and that shall be use for if a BayesSpaceBasis is needed for an operation. |
a BDataFrequencyHistograms object representing the same dataset
as.BDataFrequencyHistograms(BDataUnivariateSamples): method for BDataUnivariateSamples
Other BayesSpaceConverters:
as.BDataDensities(),
as.BDataDensityHistograms(),
as.BDataHistograms(),
as.BDataLogDensities(),
as.BDataLogPDFs(),
as.BDataPDFs(),
as.BDataSamples(),
as.BDataSplines(),
idt.BData(),
toHistogram()
Xsamples = BDataSamples(lapply(1:10,function(i) runif(100)),basis=B2Unif01Basis5)
Xhist = as.BDataFrequencyHistograms(Xsamples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.