Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pyfcomb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pyfcomb

  • 2.1.2
  • PyPI
  • Socket score

Maintainers
1

pyfcomb: Easy frequency combinations

Frequency combinations made easy! pyfcomb allows you to compute possible combinations of frequencies from a given list of frequencies.

Installation

Call

pip install pyfcomb

to install pyfcomb.

Usage

Use

pyfcomb.get_combinations(f_ids,frequencies,amplitudes)

to compute the combinations. You need to provide a list of frequency ids, frequencies and amplitudes all of the same length to compute combinations. You can also use the combo_depth parameter to change the maximum amount of combinations as well as the accuracy parameter to change the minimum precision of combinations.

The function then returns a pandas.DataFrame consisting of all frequencies and their possible combinations. The best combination (in this case the one with highest precision and least complexity) is also used to calculate the residual from the actual frequency to the combination. Lastly, this DataFrame also contains a list of all other possible combinations.

Example

from pyfcomb import get_combinations
from pandas import read_csv

file = read_csv("pyfcomb/tests/testfiles/freq_data.txt",delimiter="\t",header=None,names=['f_num','f','amp','snr'])
f_num = [int(i.replace("F","")) for i in file.f_num]
combinations = get_combinations(f_num,file.f,file.amp)

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc