electro 0.3.0
Type-safe electrical units library modeled after std::chrono
Loading...
Searching...
No Matches
electro::decibel_unit Struct Reference

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

#include <electro/decibel.hpp>

Static Public Attributes

static constexpr const charsymbol = "dB"
 

Detailed Description

A dimensionless logarithmic ratio, measured in decibels.

This is an ordinary 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* electro::decibel_unit::symbol = "dB"
staticconstexpr

Definition at line 75 of file decibel.hpp.

Referenced by electro::to_string().


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