Boost logo

Boost Users :

Subject: Re: [Boost-users] [units] EE Acceleration, Velocity, Displacement in terms of decibels
From: Matthias Schabel (boost_at_[hidden])
Date: 2011-12-04 13:35:51


> Has anyone done any work, conversions, etc, with Acceleration, Velocity, Displacement (Length) in terms of decibels? dB, dBA, dBV, etc, and conversions to/from more "conventional" units like meters, meters per second, meters per second per second?
>
> I am learning, for example, that it is possibly to integrate across the Time dimension in order to yield Velocity from Acceleration, or similarly, Displacement (Length) from Velocity.
>
> I am doing a job with these type conversions going on across a spectrum analysis and would be interested in hooking up the calculations using boost::units to help enforce dimensional / unit integrity.

Decibels and all their variants are defined as logs of ratios and, therefore, must be dimensionless. What would be sensible is to define various helper functions that take a quantity and return a log ratio.

Matthias


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net