Mul: Multiplication of functional objects

View source: R/operations.R

MulR Documentation

Multiplication of functional objects

Description

This multiplication is also able to multiply functions and BayesSpace objects with constants. The product of two functions is a function that results in the product of the two results. Product of a BayesSpace objects (in BData), is given by the BayesSpace operations, which is given powering the density with respect to the reference measure, with the given scalar.

Usage

Mul(x, y)

## S3 method for class ''function''
Mul(x, y)

## S3 method for class 'list'
Mul(x, y)

## S3 method for class 'numeric'
Mul(x, y)

## S3 method for class ''function''
Mul.function(x, y)

## S3 method for class ''function''
Mul.list(x, y)

## S3 method for class 'list'
Mul.function(x, y)

## S3 method for class 'numeric'
Mul.function(x, y)

## S3 method for class ''function''
Mul.numeric(x, y)

## S3 method for class 'numeric'
Mul.numeric(x, y)

## S3 method for class 'BData'
Mul.numeric(x, y)

## S3 method for class 'numeric'
Mul.list(x, y)

## S3 method for class 'list'
Mul.numeric(x, y)

## S3 method for class 'list'
Mul.list(x, y)

## S3 method for class 'BDataDensities'
Mul(x, y)

## S3 method for class 'BDataLogDensities'
Mul(x, y)

## S3 method for class 'BDataPDFs'
Mul(x, y)

## S3 method for class 'BDataLogPDFs'
Mul(x, y)

## S3 method for class 'BDataSplines'
Mul(x, y)

Arguments

x

a functional object

y

a functional object

Value

A BData object of the same subclass as the first argument (the Bayes-space sum / difference / scalar multiple / quotient).

Methods (by class)

  • Mul(`function`): method for multiplying functions

  • Mul(list): method for vectorized operation over lists

  • Mul(numeric): method for numerical values treated as constant functions

  • Mul(BDataDensities): BayesSpace scaling multiplication

  • Mul(BDataLogDensities): BayesSpace scaling multiplication

  • Mul(BDataPDFs): BayesSpace scaling multiplication

  • Mul(BDataLogPDFs): BayesSpace scaling multiplication for log-PDFs

  • Mul(BDataSplines): BayesSpace scaling multiplication

Functions

  • Mul.function(`function`): method for operating two functions

  • Mul.list(`function`): method for multiplying a function with each element of a list

  • Mul.function(list): method for multiplying a function with each element of a list

  • Mul.function(numeric): method for multipying a function with a numeric value

  • Mul.numeric(`function`): method for multiplying numeric constant with a function

  • Mul.numeric(numeric): method for multiplying two constant values

  • Mul.numeric(BData): method for multiplying a numeric object by a BData object

  • Mul.list(numeric): method for multiplying each element of a list with a numeric value

  • Mul.numeric(list): method for multiplying a numeric value with each element of a list

  • Mul.list(list): method for vectorized multiplication of the elements of a list.

See Also

Other Add: Add(), Div(), Sub()

Examples

Mul(sin,cos)
Mul(list(sin,cos),sin)
Mul(cos,list(sin,cos))
Mul(list(sin,cos),list(sin,cos))
Mul(list(sin,cos),10)

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