Learn R Programming

SII (version 1.2.4)

calculate_loudness_cpp: Calculate Canonical Loudness (Native C++ Engine)

Description

Native C++ port of the bramslow2004 canonical engine, corrected per AMToolbox 1.6.0 reference with noted simplifications.

Usage

calculate_loudness_cpp(
  inputF,
  inputLdB,
  HLcf,
  HLohcdB0,
  HLihcdB0,
  NoChan = 30L,
  E_Beg = 3,
  E_End = 32,
  Binaural = 0L
)

Value

A list containing Loudness (sones), Excitation, Cams, and CFs.

Arguments

inputF

Vector of input frequencies (Hz)

inputLdB

Vector of input spectrum levels (dB/Hz, free field)

HLcf

Audiogram frequencies (Hz)

HLohcdB0

OHC loss at audiogram frequencies (dB)

HLihcdB0

IHC loss at audiogram frequencies (dB)

NoChan

Number of ERB channels (default 30)

E_Beg

Lowest ERB rate (default 3.0)

E_End

Highest ERB rate (default 32.0)

Binaural

Integer indicating whether to compute binaural loudness (default 0L)