dbTocd {OPI}R Documentation

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)

Arguments

db

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

maxStim

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

Value

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

Examples

# 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

[Package OPI version 3.0.2 Index]