Code Monkey home page Code Monkey logo

-working-fourier-module-'s Introduction

Fourier Module for the sum of the harmonic components

This is the next phase of another project, it consists of a python module that allows us to calculate the Fourier series coefficients and sum the harmonic components, regardless of the type of signal. Is a work in progress, I work under the supervision of Dr. Ing. Philip Coanda. The goal of this project is to transform an audio file into a list of values that we can plot and use that signal in our harmonic component gathering application.

The inputs should be m which is the number of periods, and n the number of waves. The function dreptunghi() takes as parameters frequency f, number of samples N and the time base T it should return a list with g the value at the time t which is the discrete time, the increment dt, the number of samples N and the frequency f. The function coef() takes as parameters the signal s, the frequency f, the increment dt and the number of samples N, here is the mathematical logic for the Fourier even coefficients an and odd coefficients bn and forming the lists for waves and it's sum, those two being what the function coef() will return.

For the moment those are the results:

The original signal for square:

Original signal sqare

First 5 waves:

alt text

The original signal for square:

alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.