Learn R Programming

OPI (version 3.0.4)

dbTocd: Convert perimetric dB to cd/\(\mbox{m}^2\)

Description

Given a value in dB, return the cd/\(\mbox{m}^2\) equivalent. Default is to use HFA units, so maximum stimulus is 10000 apostilbs.

Usage

dbTocd(db, maxStim = 10000/pi)

Value

cd/\(\mbox{m}^2\) value for db dB.

Arguments

db

Value to convert to cd/\(\mbox{m}^2\).

maxStim

Stimulus value for 0dB in cd/\(\mbox{m}^2\).

Examples

Run this code
# decibels to candela
cd <- dbTocd(0)   # 10000/pi
cd <- dbTocd(10)  # 1000/pi
cd <- dbTocd(20)  # 100/pi
cd <- dbTocd(30)  # 10/pi
cd <- dbTocd(40)  # 1/pi

Run the code above in your browser using DataLab