quanta 0.1.0
Type-safe units for temperature, frequency, electrical and spatial quantities, modeled after std::chrono
Loading...
Searching...
No Matches
quanta::electro::decibel_unit Struct Reference

A dimensionless logarithmic ratio, measured in decibels. More...

#include <quanta/decibel.hpp>

Static Public Attributes

static constexpr const char * symbol = "dB"
 

Detailed Description

A dimensionless logarithmic ratio, measured in decibels.

This is an ordinary quanta::electro::quantity unit: gains add, subtract, negate and scale by a scalar, exactly as a std::chrono::duration does. Cascading two amplifiers adds their gains; doubling a gain squares the underlying ratio.

Definition at line 74 of file decibel.hpp.

Member Data Documentation

◆ symbol

constexpr const char* quanta::electro::decibel_unit::symbol = "dB"
staticconstexpr

Definition at line 75 of file decibel.hpp.

Referenced by quanta::electro::to_string(), and quanta::electro::to_string().


The documentation for this struct was generated from the following file: