Skip to Content
Digital Signal Processing (DSP) with Python Programming
book

Digital Signal Processing (DSP) with Python Programming

by Maurice Charbit
February 2017
Intermediate to advanced
290 pages
5h 48m
English
Wiley-ISTE
Content preview from Digital Signal Processing (DSP) with Python Programming

A Few Functions of Python®

To get function documentation, use .__doc__, e.g. print(range.__doc__), or help, e.g. help(zeros) or help(’def’), or ?, e.g. range.count?

  • def: introduces a function definition
  • if, else, elif: an if statement consists of a Boolean expression followed by one or more statements
  • for: executes a sequence of statements multiple times
  • while: repeats a statement or group of statements while a given condition is true
  • 1j or complex: returns complex value, e.g. a=1.3+1j*0.2 or a=complex(1.3,0.2)

Methods:

  • – type A=array([0,4,12,3]), then type A. and tab, it follows a lot of methods, e.g. the argument of the maximum using A.argmax. For help type, e.g. A.dot?.

Functions:

  • int: converts a number or string to an integer
  • len: returns the number of items in a container
  • range: returns an object that produces a sequence of integers
  • type: returns the object type

From numpy:

  • abs: returns the absolute value of the argument
  • arange: returns evenly spaced values within a given interval
  • argwhere: finds the indices of array elements that are non-zero, grouped by element
  • array: creates an array
  • cos, sin, tan: respectively calculate the cosine, the sine and the tangent
  • cosh: calculates the hyperbolic cosine
  • cumsum: calculates the cumulative sum of array elements
  • diff: calculates the n-th discrete difference along a given axis
  • dot: product of two arrays
  • exp, log: respectively calculate the exponential, the logarithm
  • fft: calculates the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Digital Signal Processing with Kernel Methods

Digital Signal Processing with Kernel Methods

Jose Luis Rojo-Alvarez, Manel Martinez-Ramon, Jordi Munoz-Mari, Gustau Camps-Valls

Publisher Resources

ISBN: 9781786301260Purchase book