NAME

RF::Functions - Perl Exporter for Radio Frequency (RF) Functions

SYNOPSIS

use RF::Functions qw{db_ratio ratio_db};
my $db = db_ratio(2); #~3dB

DESCRIPTION

RF::Functions is a lib for common RF function. I plan to add additional functions as I need them.

FUNCTIONS

db_ratio, ratio2db

Returns dB given a numerical power ratio.

my $db = db_ratio(2);   #+3dB
my $db = db_ratio(1/2); #-3dB

ratio_db, db2ratio

Returns power ratio given dB.

my $power_ratio = ratio_db(3); #2

fsl_mhz_km

Return power loss in dB given frequency in MHz and distance in km

my $free_space_loss = fsl_mhz_km($mhz, $km); #returns dB

SEE ALSO

POSIX log10

AUTHOR

Michael R. Davis, MRDVT

COPYRIGHT AND LICENSE

MIT LICENSE

Copyright (C) 2022 by Michael R. Davis