BDataLogDensities: Constructor of BDataLogDensities objects representing a...

View source: R/classes.R

BDataLogDensitiesR Documentation

Constructor of BDataLogDensities objects representing a Dataset of log Densities in a BayesSpace

Description

The dataset is represented by a list of functions, associated with a Bayes space. The basis is used for functions relying on projections, e.g. when the data is converted to a BDataSpline object

Usage

BDataLogDensities(f, basis, ...)

BDataLogPDFs(f, basis, ...)

## S3 method for class 'BDataLogDensities'
BDataDensities(
  f,
  basis = getBayesSpaceBasis(f),
  ...,
  close = FALSE,
  closed = isClosed(f),
  centered = isCentered(f)
)

## S3 method for class 'BDataLogDensities'
BDataDensities(
  f,
  basis = getBayesSpaceBasis(f),
  ...,
  close = FALSE,
  closed = isClosed(f),
  centered = isCentered(f)
)

## S3 method for class 'BDataDensities'
BDataLogDensities(
  f,
  basis = getBayesSpaceBasis(f),
  ...,
  close = FALSE,
  closed = isClosed(f),
  centered = isCentered(f)
)

## S3 method for class 'BDataLogPDFs'
BDataPDFs(
  f,
  basis = getBayesSpaceBasis(f),
  ...,
  close = FALSE,
  closed = isClosed(f),
  centered = isCentered(f)
)

## S3 method for class 'BDataPDFs'
BDataLogPDFs(
  f,
  basis = getBayesSpaceBasis(f),
  ...,
  close = FALSE,
  closed = isClosed(f),
  centered = isCentered(f)
)

Arguments

f

a dataset of densities in some form

basis

the BayesSpaceBasis (or an object that can be converted to one) to be used for projections.

...

further generic parameters

close

boolean, if true a closed object will be returned

closed

boolean, if true it is assumed that the input is already closed

centered

boolean, if true the input is assumed to be centered

Value

An object of class 'c("BDataLogDensities","BData")' representing the log-densities with respect to the reference measure.

Methods (by class)

  • BDataLogDensities(BDataDensities): conversion method

Methods (by generic)

  • BDataDensities(BDataLogDensities): Method for a list of functions

  • BDataDensities(BDataLogDensities): conversion method

Functions

  • BDataLogPDFs(): Object representing Lebesgue densities

  • BDataPDFs(BDataLogPDFs): conversion method

  • BDataLogPDFs(BDataPDFs): conversion method

See Also

[BayesSpaceBasis]

Other BData: BDataDensities(), BDataDensityHistograms()

Examples

BDataDensities(list(function(x) x, function(x) 1-x),B2Unif01Basis5)



DistributionalDDA documentation built on Oct. 20, 2026, 5:06 p.m.