getL2Space: Generic function returning the L2Space associated to the...

View source: R/classes.R

getL2SpaceR Documentation

Generic function returning the L2Space associated to the given object.

Description

Generic function returning the L2Space associated to the given object.

Usage

getL2Space(X, ...)

## S3 method for class 'BayesSpaceBasis'
getL2Space(X, ...)

## S3 method for class ''NULL''
getL2Space(X, ..., Default)

## S3 method for class 'BData'
getL2Space(X, ...)

## S3 method for class 'ReferenceMeasure'
getL2Space(X, ...)

## Default S3 method:
getL2Space(X, ..., Default = getL2Space(attr(X, "BayesSpace")))

## S3 method for class 'BayesSpace'
getL2Space(X, ...)

Arguments

X

the object

...

further named arguments used by methods e.g. Default

Default

the Bayes Space returned if no L2 Space is associated

Value

The associated [L2Space] object (class '"L2Space"').

Methods (by class)

  • getL2Space(BayesSpaceBasis): method for BayesSpaceBasis

  • getL2Space(`NULL`): method for NULL, returns default

  • getL2Space(BData): method for BData

  • getL2Space(ReferenceMeasure): creates the BayesSpace for the reference measure

  • getL2Space(default): default method tries to get an attribute

  • getL2Space(BayesSpace): returns L2Space with same reference measure

See Also

Other getBayesSpace: getBayesSpace()

Examples

getL2Space(B2Unif01Basis5)
set.seed(47)
X = BDataGeneral(list(function(x) x, function(x) x^2),basis=B2Unif01Basis5)
getL2Space(X)
getL2Space(StdReferenceMeasureUnif01)


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