electricpy.conversions.voltage_to_db

electricpy.conversions.voltage_to_db(voltage, ref_voltage)[source]

Voltage to Decibel.

Given the voltage and reference voltage, this function will evaluate the voltage in the decibel scale.

Parameters:
voltage : float

voltage

ref_voltage : float

Reference voltage

Returns:

decibel – voltage in the decibel scale

Return type:

float