instruction
stringlengths
31
27k
completion
stringlengths
0
17.7k
__original_row_idx
int64
0
12.5k
conversations
listlengths
2
2
Are there ways to increase computational performance of a normalized least squares (NLMS) filter? Multidelay block frequency-domain (MDF) filters have been proposed to do this, but they also take away from convergence speed and accuracy, because they only update the estimated impulse response once every block, not once...
Yes, there are several methods to improve the computational performance of a normalized least squares (NLMS) filter without sacrificing convergence speed and accuracy. Here are a few alternatives to the multidelay block frequency-domain (MDF) approach: 1. **Fast NLMS (FNLMS)**: This algorithm uses a recursive update f...
0
[ { "from": "human", "value": "Are there ways to increase computational performance of a normalized least squares (NLMS) filter? Multidelay block frequency-domain (MDF) filters have been proposed to do this, but they also take away from convergence speed and accuracy, because they only update the estimated im...
When developing products I do all of my algorithm design in Matlab. They are usually pretty basic, an IIR or FIR filter or two, a couple FFTs, etc. When it comes time to move it to an embedded environment I always have a hard time deciding what platform to run it on. I usually think of these (broad) platforms: DSP cor...
Choosing the right platform for your algorithm can be a daunting task. Here are some key factors to consider when deciding between a DSP core, FPGA, microcontroller, and ARM-based system: ### Performance Requirements 1. **Computational Complexity**: Estimate the number of operations per second (MIPS or MFLOPS) requir...
1
[ { "from": "human", "value": "When developing products I do all of my algorithm design in Matlab. They are usually pretty basic, an IIR or FIR filter or two, a couple FFTs, etc. When it comes time to move it to an embedded environment I always have a hard time deciding what platform to run it on. I usually t...
I have a project where I would like to image an object and be able to derive the heights of features in this image to sub-millimetre precision (exactly how precise is still yet to be determined, but let's say 100ths of a millimetre for now). I have been previously advised that direct laser ranging techniques will not b...
A fascinating project! Achieving sub-millimeter precision with stereo vision is theoretically possible, but it's a challenging task. I'll provide an overview of the concepts and point you to some resources to help you get started. **Theoretical feasibility:** Stereo vision can be used to estimate the 3D structure of a...
2
[ { "from": "human", "value": "I have a project where I would like to image an object and be able to derive the heights of features in this image to sub-millimetre precision (exactly how precise is still yet to be determined, but let's say 100ths of a millimetre for now).\nI have been previously advised that ...
We can easily design interpolation filters that obey certain frequency-domain constraints using the Parks-McClellan algorithm. However, it's not immediately clear how to enforce time-domain constraints; in particular, I'm interested in generating Nyquist filters. So if I'm oversampling by a factor of N, I want the fi...
You're looking for a method to design Nyquist filters with a specific zero-crossing constraint, which is essential for interpolators. The Parks-McClellan algorithm is indeed a powerful tool for designing filters with frequency-domain constraints, but it doesn't directly handle time-domain constraints like zero-crossing...
3
[ { "from": "human", "value": "We can easily design interpolation filters that obey certain frequency-domain constraints using the Parks-McClellan algorithm. However, it's not immediately clear how to enforce time-domain constraints; in particular, I'm interested in generating Nyquist filters. So if I'm ove...
I know that a Hidden Markov Model (HMM) is used in speech recognition and understand it to some degree. However, what I don't know is how input (speech) is "transformed" to a vector which in later used in HMM. How do you get a vector from a sound input? Is this vector readable by a human?
The process of converting speech input into a vector representation that can be used by an HMM is called **feature extraction**. Here's a simplified overview of the steps involved: 1. **Audio Preprocessing**: The raw audio signal is preprocessed to remove noise, normalize the volume, and filter out unwanted frequencie...
4
[ { "from": "human", "value": "I know that a Hidden Markov Model (HMM) is used in speech recognition and understand it to some degree. However, what I don't know is how input (speech) is \"transformed\" to a vector which in later used in HMM.\nHow do you get a vector from a sound input? Is this vector readabl...
In speech recognition, the front end generally does signal processing to allow feature extraction from the audio stream. A discrete Fourier transform (DFT) is applied twice in this process. The first time is after windowing; after this Mel binning is applied and then another Fourier transform. I've noticed however, tha...
A great question about the intricacies of speech recognition! You're correct that the front end of a speech recognition system typically involves two transformations: one after windowing (usually a DFT) and another after Mel binning (often a DCT). To understand the difference between these two transformations and why ...
5
[ { "from": "human", "value": "In speech recognition, the front end generally does signal processing to allow feature extraction from the audio stream. A discrete Fourier transform (DFT) is applied twice in this process. The first time is after windowing; after this Mel binning is applied and then another Fou...
I have a 2D image, which I want to lowpass filter, with these constraints / quality metrics: I can not "add" light to the image, so each pixel in the result should be <= the corresponding pixel in the input. The lowpass cutoff frequency should be a parameter, to experiment with Applying this filter repeatedly should n...
You're looking for a low-pass filter that preserves the constraint that each pixel in the output is less than or equal to the corresponding pixel in the input. This is a non-standard constraint, and I'll provide some insights and potential approaches. **Observations** 1. Your constraint is equivalent to saying that t...
6
[ { "from": "human", "value": "I have a 2D image, which I want to lowpass filter, with these constraints / quality metrics:\n\nI can not \"add\" light to the image, so each pixel in the result\nshould be <= the corresponding pixel in the input.\nThe lowpass cutoff frequency should be a parameter, to experimen...
I have 100,000 samples of a signal $x[n]$ that was sampled at 20kHz. The data is vibration data from a rotating machine, and contains a significant spectral component related to the speed of the machine's rotation. Because the speed of the machine varies over the duration of the sample, using the peak of the FFT does ...
To transform your real-valued signal into a complex-valued signal, you can use a technique called analytic signal generation or complexification. One common approach is to use the Hilbert transform. Given your real-valued signal: $x[n] = A \cos(\omega n + \theta) + z_r[n]$ You can generate the corresponding analytic...
7
[ { "from": "human", "value": "I have 100,000 samples of a signal $x[n]$ that was sampled at 20kHz. The data is vibration data from a rotating machine, and contains a significant spectral component related to the speed of the machine's rotation.\nBecause the speed of the machine varies over the duration of t...
For microscopy, we're frequently testing cameras. Since my applications involve very low signal-to-noise ratio, it becomes important that the noise is free of correlations and patterns, because local correlation is all that really distinguishes signal from background. To test the noise, I usually acquire a series of ~1...
You're looking for ways to characterize and quantify the noise in your camera, specifically to identify any correlations or patterns that could affect your low-signal-to-noise ratio applications. I'll outline some approaches to help you analyze the noise more comprehensively and efficiently: 1. **Pixel-wise autocorrel...
8
[ { "from": "human", "value": "For microscopy, we're frequently testing cameras. Since my applications involve very low signal-to-noise ratio, it becomes important that the noise is free of correlations and patterns, because local correlation is all that really distinguishes signal from background.\nTo test t...
In most audio processing tasks, one of the most used transformations is MFCC (Mel-frequency cepstral coefficients). I mostly know the math that's behind the MFCC: I understand both the filterbank step and the Mel frequency scaling. What I don't get is the DCT (Discrete Cosine Transform) step: What kind of information d...
The DCT step in MFCC calculation is indeed a crucial one, and understanding its role can be a bit tricky. **What is the DCT step doing?** The DCT (Discrete Cosine Transform) is a mathematical operation that decomposes a sequence of numbers into its constituent frequencies. In the context of MFCC, the DCT is applied t...
9
[ { "from": "human", "value": "In most audio processing tasks, one of the most used transformations is MFCC (Mel-frequency cepstral coefficients).\nI mostly know the math that's behind the MFCC: I understand both the filterbank step and the Mel frequency scaling.\nWhat I don't get is the DCT (Discrete Cosine ...
I have been looking at stereo vision applications, and one working example involves using two USB web cams, mounted together and calibrated. Is there a way to estimate the theoretical spatial resolution of such a set up? The goal is to avoid purchasing and testing blindly but rather to be relatively confident ahead of...
Estimating the theoretical spatial resolution of a stereo vision setup is a complex task, as it depends on several factors, including the camera's sensor size, lens characteristics, and the geometry of the setup. However, we can make an educated estimate using some basic principles and formulas. **Required information...
10
[ { "from": "human", "value": "I have been looking at stereo vision applications, and one working example involves using two USB web cams, mounted together and calibrated.\nIs there a way to estimate the theoretical spatial resolution of such a set up? The goal is to avoid purchasing and testing blindly but ...
In the comment to this answer using a laser diode and diffraction grating to provide texture on a surface was suggested to aid in height calculations in a computer vision system. I believe the pattern that I'm familiar with is projecting a chessboard pattern on the object. I was under the (incomplete) understanding th...
Your understanding is not entirely incorrect, but it's incomplete. The technique you're referring to is called structured light, and it's a popular method for 3D reconstruction in computer vision. The idea is to project a known pattern onto the object's surface and then analyze the deformation of the pattern to infer t...
11
[ { "from": "human", "value": "In the comment to this answer using a laser diode and diffraction grating to provide texture on a surface was suggested to aid in height calculations in a computer vision system.\nI believe the pattern that I'm familiar with is projecting a chessboard pattern on the object. I w...
IIR filters may be implemented as direct form 1 or 2. But how do you decide which form to use? What are the pros and cons of each?
When implementing an Infinite Impulse Response (IIR) filter, you have two primary forms to choose from: Direct Form 1 (DF1) and Direct Form 2 (DF2). Each form has its advantages and disadvantages, and the choice between them depends on the specific application, hardware constraints, and numerical considerations. **Dir...
12
[ { "from": "human", "value": "IIR filters may be implemented as direct form 1 or 2. But how do you decide which form to use? What are the pros and cons of each? \n" }, { "from": "gpt", "value": "When implementing an Infinite Impulse Response (IIR) filter, you have two primary forms to choose from...
I need to implement an approximation to the inverse of $x^x$, i.e. the square super-root (ssrt) function. For example, $\mathrm{ssrt}(2) \approx 1.56$ means that $1.56^{1.56} \approx 2$. I'm not as interested in any particular accuracy/bit-depth as I am in understanding what my options are in contrast to more straight...
Approximation techniques specific to the square super-root function, also known as the "tetrational inverse" or "super square root," have indeed been explored in various mathematical and computational contexts. While a comprehensive, hands-on treatment like Crenshaw's might not be readily available, there are some not...
13
[ { "from": "human", "value": "I need to implement an approximation to the inverse of $x^x$, i.e. the square super-root (ssrt) function. For example, $\\mathrm{ssrt}(2) \\approx 1.56$ means that $1.56^{1.56} \\approx 2$. I'm not as interested in any particular accuracy/bit-depth as I am in understanding what...
I have a wireless communication system that I am simulating in Matlab. I am performing some watermarking through slightly adjusting the phase of the transmitted signal. My simulation takes the original I (inphase) and Q (quadrature) values and adds in the watermark. I then have to simulate the resulting bit error rate ...
**Adding Noise to I and Q Channels** ===================================== You are correct that adding noise to the I and Q channels independently is not equivalent to adding noise to the signal as a whole. To add AWGN to the signal, you need to add noise that is also represented in the I and Q domain. **Noise Repres...
14
[ { "from": "human", "value": "I have a wireless communication system that I am simulating in Matlab. I am performing some watermarking through slightly adjusting the phase of the transmitted signal. My simulation takes the original I (inphase) and Q (quadrature) values and adds in the watermark. I then have ...
Given a recording I need to detect whether any clipping has occurred. Can I safely conclude there was clipping if any (one) sample reaches the maximum sample value, or should I look for a series of subsequent samples at the maximum level? The recording may be taken from 16 or 24-bit A/D converters, and are converted ...
To determine if clipping has occurred in an audio recording, it's essential to understand the nature of clipping and how it manifests in digital audio signals. Clipping happens when an analog signal exceeds the maximum amplitude that can be represented by the digital system, causing the signal to be "clipped" at the ma...
15
[ { "from": "human", "value": "Given a recording I need to detect whether any clipping has occurred. \nCan I safely conclude there was clipping if any (one) sample reaches the maximum sample value, or should I look for a series of subsequent samples at the maximum level? \nThe recording may be taken from 16 o...
Everyone discusses the Fourier transform when discussing signal processing. Why is it so important to signal processing and what does it tell us about the signal? Does it only apply to digital signal processing or does it apply to analog signals as well?
The Fourier transform is a fundamental concept in signal processing, and its importance cannot be overstated. It's a mathematical tool that helps us analyze and understand the frequency content of a signal, which is crucial in various fields, including engineering, physics, and mathematics. **What does the Fourier tra...
16
[ { "from": "human", "value": "Everyone discusses the Fourier transform when discussing signal processing. Why is it so important to signal processing and what does it tell us about the signal?\nDoes it only apply to digital signal processing or does it apply to analog signals as well?\n" }, { "from":...
In Image/Signal processing context we have seen/we know that if there are say 4 samples and if we take an average of those 4 samples, then we say that the result sample is a low pass filtered output sample. This is very relevant in Image processing context. Now then, what is the operation which implies a high pass filt...
A great question in the realm of signal processing! You're correct that taking the average of neighboring samples is equivalent to low-pass filtering, which attenuates high-frequency components and preserves low-frequency components. To achieve high-pass filtering, which accentuates high-frequency components and atte...
17
[ { "from": "human", "value": "In Image/Signal processing context we have seen/we know that if there are say 4 samples and if we take an average of those 4 samples, then we say that the result sample is a low pass filtered output sample. This is very relevant in Image processing context. Now then, what is the...
I've learned about a number of edge detection algorithms, including algorithms like Sobel, Laplacian, and Canny methods. It seems to me the most popular edge detector is a Canny edge detector, but is there cases where this isn't the optimal algorithm to use? How can I decide which algorithm to use? Thanks!
You're right that the Canny edge detector is one of the most popular and widely used edge detection algorithms. However, there are cases where other algorithms may be more suitable, depending on the specific requirements and characteristics of the image. Here are some scenarios where you might prefer alternative edge d...
18
[ { "from": "human", "value": "I've learned about a number of edge detection algorithms, including algorithms like Sobel, Laplacian, and Canny methods. It seems to me the most popular edge detector is a Canny edge detector, but is there cases where this isn't the optimal algorithm to use? How can I decide whi...
I can't think of a better way for asking this question so I will start with an example. Suppose that I have an input signal with a max frequency of 50Hz (sampled at 100Hz). Now the signals of interest lie in the range 0-5Hz, so I can add a low-pass filter with a cut-off of 5Hz, and use the resulting signal for further ...
A great question about signal processing! **You are correct**: In your example, applying a low-pass filter with a cut-off frequency of 5 Hz and then downsampling the filtered signal by a factor of 10 is a valid approach. This process is called **decimation**. Here's what's happening: 1. The low-pass filter removes h...
19
[ { "from": "human", "value": "I can't think of a better way for asking this question so I will start with an example. Suppose that I have an input signal with a max frequency of 50Hz (sampled at 100Hz). Now the signals of interest lie in the range 0-5Hz, so I can add a low-pass filter with a cut-off of 5Hz, ...
What exactly is meant by "stochastic sampling" and is it profoundly different from the regular Nyquist-Shannon sampling theorem? Is it related to sampling a stochastic process?
A delightful question! Stochastic sampling, indeed related to stochastic processes, is a broader concept that encompasses various sampling techniques used to analyze and represent signals or systems that exhibit randomness or uncertainty. While it's connected to the Nyquist-Shannon sampling theorem, it's not a direct ...
20
[ { "from": "human", "value": "What exactly is meant by \"stochastic sampling\" and is it profoundly different from the regular Nyquist-Shannon sampling theorem? Is it related to sampling a stochastic process?\n" }, { "from": "gpt", "value": "A delightful question!\n\nStochastic sampling, indeed r...
What are the proper steps for preprocessing my waveforms in order to perform an independent component analysis (ICA) later? I understand the how, though further explanation of that doesn't hurt, but I'm more interested in the why.
Preprocessing is a crucial step before applying Independent Component Analysis (ICA) to your waveforms. Here's a step-by-step guide on how to preprocess your data, along with explanations of the "why" behind each step: 1. **Filtering**: Apply a band-pass filter to remove noise and artifacts outside the frequency range...
21
[ { "from": "human", "value": "What are the proper steps for preprocessing my waveforms in order to perform an independent component analysis (ICA) later? I understand the how, though further explanation of that doesn't hurt, but I'm more interested in the why.\n" }, { "from": "gpt", "value": "Pre...
One of the standard ways to implement a Butterworth filter is with a cascade of second-order sections, each corresponding to a pair of complex-conjugate poles. For a fourth-order filter, for example, there would be two second-order sections. If we consider how the pole locations for a lowpass filter change in the z-p...
The elusive tunable digital Butterworth filter! After digging through various resources, I found that the concept you're looking for is indeed related to the control systems literature, specifically in the area of parametric filter design. The paper you mentioned, "High-Order Digital Parametric Equalizer Design" by S...
22
[ { "from": "human", "value": "One of the standard ways to implement a Butterworth filter is with a cascade of second-order sections, each corresponding to a pair of complex-conjugate poles. For a fourth-order filter, for example, there would be two second-order sections. If we consider how the pole locatio...
Background: Often times I am doing some sort of signal processing task that requires a unique filter. Usually at this point I go to MATLAB and generate a new unique filter using $\tt firpm()$. The MATLAB firpm() function implements that Parks-McClellan algorithm. Now I have a filter and I put the filter into a hardcode...
You can find an open-source implementation of the Parks-McClellan algorithm in the following places: 1. **GNU Octave**: Octave is an open-source alternative to MATLAB, and it has an implementation of the `firpm()` function in its signal processing package. You can find the source code in the Octave repository on [GitH...
23
[ { "from": "human", "value": "Background: Often times I am doing some sort of signal processing task that requires a unique filter. Usually at this point I go to MATLAB and generate a new unique filter using $\\tt firpm()$. The MATLAB firpm() function implements that Parks-McClellan algorithm. Now I have a f...
From what I understand, the DCT has half the bin size as a DFT of the same size N. The DFT also includes phase information, but often this is not needed when only the magnitude spectrum is desired. Could the DCT be used to provide a magnitude spectrum with twice the density (half the bin spacing) of the DFT or woul...
A great question about the relationship between DCT (Discrete Cosine Transform) and DFT (Discrete Fourier Transform)! You're correct that the DCT has half the bin size as a DFT of the same size N, since the DCT is essentially a DFT of a symmetrically extended sequence (i.e., a sequence with its time-reversed copy conc...
24
[ { "from": "human", "value": "From what I understand, the DCT has half the bin size as a DFT of the same size N. The DFT also includes phase information, but often this is not needed when only the magnitude spectrum is desired. \n\nCould the DCT be used to provide a magnitude spectrum with twice the densit...
Huffman coding is a widely used method of entropy coding used for data compression. It assumes that we have complete knowledge of a signal's statistics. However, there are versions of Huffman coding that are used with streaming media and cannot possibly know everything about the signal's statistics. How do these adapti...
Adaptive Huffman coding is a variation of Huffman coding that can adapt to the changing statistics of a signal, making it suitable for streaming media where the complete signal statistics are not known in advance. There are two main types of adaptive Huffman coding: adaptive Huffman coding with fixed-size codes and ada...
25
[ { "from": "human", "value": "Huffman coding is a widely used method of entropy coding used for data compression. It assumes that we have complete knowledge of a signal's statistics. However, there are versions of Huffman coding that are used with streaming media and cannot possibly know everything about the...
Suppose we have a signal $n$ that consists of Gaussian white noise. If we modulate this signal by multiplying it by $\sin 2\omega t$, the resulting signal still has a white power spectrum, but clearly the noise is now "bunched" in time. This is an example of a cyclostationary process. $$x(t) = n(t) \sin2\omega t$$ Su...
A fascinating topic indeed! Cyclostationary processes are an important area of study in signal processing, and there are several mathematical tools and techniques that can help you understand and analyze them. Here are a few: 1. **Cyclic Autocorrelation Function**: The cyclic autocorrelation function is a fundamental ...
26
[ { "from": "human", "value": "Suppose we have a signal $n$ that consists of Gaussian white noise. If we modulate this signal by multiplying it by $\\sin 2\\omega t$, the resulting signal still has a white power spectrum, but clearly the noise is now \"bunched\" in time. This is an example of a cyclostation...
Let's say that I have a 1 dimensional signal that has data which comes from one of 2 different spectral bands. The measurements come evenly mixed between the two bands. I'm interested in a method of extending the frequency calculation by combining information from both signals. To show an example, let's just say that ...
You're looking to combine the information from the Red (R) and Green (G) bands to extend the frequency range of your signal. This is a classic problem in signal processing, and there are several approaches you can take. Here are a few methods to consider: 1. **Interleaving**: Since the detectors are alternating betwee...
27
[ { "from": "human", "value": "Let's say that I have a 1 dimensional signal that has data which comes from one of 2 different spectral bands. The measurements come evenly mixed between the two bands. I'm interested in a method of extending the frequency calculation by combining information from both signals. ...
I have a signal of some length, say 1000 samples. I would like to extend this signal to 5000 samples, sampled at the same rate as the original (i.e., I want to predict what the signal would be if I continued to sample it for a longer period of time). The signal is composed of several sinusoidal components added togethe...
Extending a Signal with Sinusoidal Components ============================================== The problem you're facing is known as "signal extrapolation" or "signal prediction." Since your signal is composed of multiple sinusoidal components, one approach is to estimate the frequencies, amplitudes, and phases of these...
28
[ { "from": "human", "value": "I have a signal of some length, say 1000 samples. I would like to extend this signal to 5000 samples, sampled at the same rate as the original (i.e., I want to predict what the signal would be if I continued to sample it for a longer period of time). The signal is composed of se...
I have an image and I would like to measure the amount of detail in it. Another way to look at it is to measure how blurry an image is. One way is to analyse the high frequency components in the Fourier transform of the image. Are there any other/better methods?
Measuring image blur or detail is a fundamental task in image processing. While analyzing high-frequency components in the Fourier transform is a good approach, there are indeed other methods to estimate image blur or detail. Here are some alternatives: 1. **Spectral methods**: * **Discrete Cosine Transform (DCT)**: ...
29
[ { "from": "human", "value": "I have an image and I would like to measure the amount of detail in it. Another way to look at it is to measure how blurry an image is. One way is to analyse the high frequency components in the Fourier transform of the image. \nAre there any other/better methods?\n" }, { ...
In Five short stories about the cardinal series $[1]$, the author makes the following comment: Interestingly enough, Shannon goes on to mention that other sets of data can also be used to determine the band-limited signal--for example, the values of ƒ and its first derivative at every other sample point, the val...
A nice question about sampling theory! The concept you're referring to is called "Hermite sampling" or "Hermite interpolation". It's a generalization of the classical Shannon sampling theorem, which states that a band-limited signal can be reconstructed from its samples at regular intervals (the Nyquist rate). Hermite...
30
[ { "from": "human", "value": "In Five short stories about the cardinal series $[1]$, the author makes the following comment:\n\nInterestingly enough, Shannon goes on to mention that other sets of\n data can also be used to determine the band-limited signal--for\n example, the values of ƒ and its first deri...
I have a set of contours (set of line segments) grouped in the following way: $S_i = \{I^0, I^\frac{\pi}{4}, I^\frac{2\pi}{4}, \ldots, I^\frac{7\pi}{4} \}$ where $S_i$ denote sequence of photos of one concrete object. $I^j$ denote an image, with $j^{th}$ point of view ($j=0$ means front view). Here is example of ...
You have a set of 2D contours (line segments) of an object from different viewpoints, and you want to reconstruct the 3D structure of the object. This is a classic problem in computer vision, known as **Structure from Contours** or **Shape from Contours**. Here are some key concepts and techniques that might help you:...
31
[ { "from": "human", "value": "I have a set of contours (set of line segments) grouped in the following way:\n$S_i = \\{I^0, I^\\frac{\\pi}{4}, I^\\frac{2\\pi}{4}, \\ldots, I^\\frac{7\\pi}{4} \\}$\nwhere\n\n$S_i$ denote sequence of photos of one concrete object. \n$I^j$ denote an image, with $j^{th}$ point o...
When designing a digital filter based on an analog filter we usually use the bilinear transform. To approximate a discrete transfer function $D_a(z)$ from analog (continuous) transfer function $A(s)$ we substitute $$z = \frac{1+sT/2}{1-sT/2}$$ where $T$ is the sampling period. Alternatively, to approximate an continuo...
## Step 1: Introduction to Alternative Methods There are indeed alternative methods to the bilinear transform for converting between continuous-time and discrete-time transfer functions. Each method has its own advantages and disadvantages, and the choice of method depends on the specific application and desired level ...
32
[ { "from": "human", "value": "When designing a digital filter based on an analog filter we usually use the bilinear transform. To approximate a discrete transfer function $D_a(z)$ from analog (continuous) transfer function $A(s)$ we substitute \n$$z = \\frac{1+sT/2}{1-sT/2}$$\nwhere $T$ is the sampling perio...
What are less computationally demanding alternatives to the Viterbi Decoder? Ideally what I would like is a list of the most commonly used approximate methods, along with brief pros and cons.
The Viterbi algorithm is a maximum likelihood sequence estimation algorithm used in convolutional coding, but it can be computationally demanding for large constraint lengths or high data rates. Here are some commonly used approximate methods that are less computationally demanding: 1. **Add-Compare-Select (ACS) algor...
33
[ { "from": "human", "value": "What are less computationally demanding alternatives to the Viterbi Decoder?\nIdeally what I would like is a list of the most commonly used approximate methods, along with brief pros and cons.\n" }, { "from": "gpt", "value": "The Viterbi algorithm is a maximum likeli...
Given a filter used to shape the digital signal, $p(x)$, and given that we do not want the filter combination to cause any ISI, what "matched" filter, $q(x)$ will maximise the SNR? Matched filters are used in digital communications to maximize the signal to noise ratio. Often a root-raised-cosine filter is used to sha...
A classic problem in digital communications! You're on the right track, but there's a more elegant and well-known solution. The matched filter that maximizes the SNR, given a fixed transmit filter $p(x)$, is indeed related to $p(x)$. The key insight is that the matched filter $q(x)$ should be designed to maximize the...
34
[ { "from": "human", "value": "Given a filter used to shape the digital signal, $p(x)$, and given that we do not want the filter combination to cause any ISI, what \"matched\" filter, $q(x)$ will maximise the SNR?\nMatched filters are used in digital communications to maximize the signal to noise ratio. Ofte...
I have a floating-point digital signal processing system that operates at a fixed sample rate of $f_s = 32768$ samples per second implemented using an x86-64 processor. Assuming that the DSP system is synchronously locked to whatever matters, what is the best way to implement a digital oscillator at some frequency $f$...
Implementing a Digital Oscillator ================================ The proposed implementation is a good start, but as you've noted, it may suffer from phase error and amplitude instability due to numerical issues. A more robust approach is to use a phase accumulator and a lookup table or a trigonometric approximation...
35
[ { "from": "human", "value": "I have a floating-point digital signal processing system that operates at a fixed sample rate of $f_s = 32768$ samples per second implemented using an x86-64 processor. Assuming that the DSP system is synchronously locked to whatever matters, what is the best way to implement a...
The same floating-point AMD X86-64 digital signal processing system mentioned in my previous question has a problem where it sometimes slows down substantially when signals attain values very near (but not exactly) zero. The problem is that denormalized floating point values require special processing by the CPU which ...
**Disabling Denormal Numbers on Linux with GCC** Yes, you can instruct the FPU to not generate denormal numbers by setting the MXCSR (MXCSR is the x86 floating point control and status register) register to round to zero when a denormal result occurs. This can be done in Linux with GCC using the following approaches: ...
36
[ { "from": "human", "value": "The same floating-point AMD X86-64 digital signal processing system mentioned in my previous question has a problem where it sometimes slows down substantially when signals attain values very near (but not exactly) zero.\nThe problem is that denormalized floating point values re...
I would like to compute a power spectrum in which the frequencies are logarithmically spaced. In Welch's method there is a trade-off between the frequency resolution of the resulting power spectrum and the number of averages (i.e. error in the result). I would like this trade-off to be dynamic, i.e. do fewer averages ...
You're looking to perform a power spectral density (PSD) estimation with a variable frequency resolution, where the frequency bins are logarithmically spaced. This is an interesting problem, and I'll outline a few approaches to help you achieve this. **1. Rebinning:** Your suggested approach of initially performing a ...
37
[ { "from": "human", "value": "I would like to compute a power spectrum in which the frequencies are logarithmically spaced.\nIn Welch's method there is a trade-off between the frequency resolution of the resulting power spectrum and the number of averages (i.e. error in the result). I would like this trade-...
Suppose we have a linear represented in the standard state space notation: $$ \dot{x}(t)=Ax(t)+Bu(t)$$ $$y(t) = Cx(t) + Du(t)$$ In order to get its impulse response, it is possible to take its Laplace transform to get $$sX=AX+BU$$ $$Y=CX+DU$$ and then solve for the transfer function which is $$\frac{Y}{U}=C(sI-A)^{-1}...
## Step 1: Recall the definition of the state transition matrix for continuous-time systems The state transition matrix $\Phi(t)$ for a continuous-time system $\dot{x}(t) = Ax(t) + Bu(t)$ is defined as the solution to the homogeneous equation $\dot{\Phi}(t) = A\Phi(t)$ with the initial condition $\Phi(0) = I$, where $I...
38
[ { "from": "human", "value": "Suppose we have a linear represented in the standard state space notation:\n$$ \\dot{x}(t)=Ax(t)+Bu(t)$$\n$$y(t) = Cx(t) + Du(t)$$\nIn order to get its impulse response, it is possible to take its Laplace transform to get\n$$sX=AX+BU$$\n$$Y=CX+DU$$\nand then solve for the transf...
Is there a generically accepted method of removing motion blur from an image. For a simple case, we can assume that motion happens in a straight line. I assume that it's a two part process composed of motion estimation and then deconvolution, but how is it actually done?
Removing motion blur from an image is a challenging problem in image processing, and there isn't a single, universally accepted method. However, the general approach, as you mentioned, involves two main steps: motion estimation and deconvolution. Here's an overview of the process: **Motion Estimation** The goal of mo...
39
[ { "from": "human", "value": "Is there a generically accepted method of removing motion blur from an image. For a simple case, we can assume that motion happens in a straight line. I assume that it's a two part process composed of motion estimation and then deconvolution, but how is it actually done?\n" },...
Suppose I've got an audio signal sampled at $48000$ Hz, and I'd like to design a low-pass filter that isolates everything below ~$60$Hz. In the digital world, this is a low-pass filter with the passband at $[-\frac{\pi}{400} , \frac{\pi}{400} ] $. Also, the transition band should be reasonable as well. Building a FIR f...
You're facing a common dilemma in audio signal processing: the trade-off between filter complexity, phase linearity, and precision. Let's break down your options and explore the possibility of using wavelet transforms. **FIR filtering:** Yes, designing a FIR filter with a very narrow passband (e.g., $[-\frac{\pi}{400}...
40
[ { "from": "human", "value": "Suppose I've got an audio signal sampled at $48000$ Hz, and I'd like to design a low-pass filter that isolates everything below ~$60$Hz. In the digital world, this is a low-pass filter with the passband at $[-\\frac{\\pi}{400} , \\frac{\\pi}{400} ] $. Also, the transition band s...
In trying to understand this answer to my earlier question, can someone explain why it is important that the cameras are not in the same plane when the focal distance is large compared to the separation between the cameras and the object? What is meant by "looking in"? Does this change if the number of views/cameras in...
The importance of cameras not being in the same plane when the focal distance is large compared to the separation between the cameras and the object is related to the concept of parallax and depth perception. **Parallax and Depth Perception** When two cameras are in the same plane (i.e., they are coplanar), the paral...
41
[ { "from": "human", "value": "In trying to understand this answer to my earlier question, can someone explain why it is important that the cameras are not in the same plane when the focal distance is large compared to the separation between the cameras and the object?\nWhat is meant by \"looking in\"?\nDoes ...
The following paper describes an application of the Teager-Kaiser energy operator to x-ray image enhancement: Reinhard Bernstein, Michael S. Moore and Sanjit K. Mitra, "Adjustable Quadratic Filters for Image Enhancement" Proc. IEEE International Conference on Image Processing (ICIP), Santa Barbara, CA, vol. 1, pp....
A very specific and technical question! The design of polynomial filters, including quadratic filters like the one you mentioned, is an active area of research. While system identification frameworks are widely used, they often rely on numerical optimization techniques and may not provide a deep understanding of why t...
42
[ { "from": "human", "value": "The following paper describes an application of the Teager-Kaiser energy operator to x-ray image enhancement:\n\nReinhard Bernstein, Michael S. Moore and Sanjit K. Mitra, \"Adjustable\n Quadratic Filters for Image Enhancement\" Proc. IEEE International\n Conference on Image Pr...
What techniques might one use to estimate the onset time of a sinusoidal tone burst in a noisy signal? Assume the tone burst has a known fixed frequency (but unknown phase) and a very sharp rise time, and that the goal is to estimate the onset time within better than half the rise time, and/or one period of the freque...
Estimating the onset time of a sinusoidal tone burst in a noisy signal is a challenging task, especially when the S/N ratio is low. Here are some techniques that might be useful: 1. **Peak detection**: Look for the maximum absolute value of the signal or its envelope (e.g., using the Hilbert transform) within a window...
43
[ { "from": "human", "value": "What techniques might one use to estimate the onset time of a sinusoidal tone burst in a noisy signal? \nAssume the tone burst has a known fixed frequency (but unknown phase) and a very sharp rise time, and that the goal is to estimate the onset time within better than half the ...
Compared to standard (conventional) beamformers, adaptive beamformers such as minimum variance distortionless response (MVDR) have much better resolution and interference nulling capabilities. Briefly, the MVDR beamformer is as follows: If $\mathbf{a}_\theta$ is the look-vector in the direction $\theta$ and if $\wideha...
Yes, it is possible to improve the estimates of the signal powers using the MVDR beamformer in the perturbed case. There are several techniques to increase the robustness of adaptive beamformers to signal mismatches: 1. **Robust Covariance Matrix Estimation**: One way to improve the robustness of the MVDR beamformer i...
44
[ { "from": "human", "value": "Compared to standard (conventional) beamformers, adaptive beamformers such as minimum variance distortionless response (MVDR) have much better resolution and interference nulling capabilities. Briefly, the MVDR beamformer is as follows:\nIf $\\mathbf{a}_\\theta$ is the look-vect...
In Hamming's book, The Art of Doing Science and Engineering, he relates the following story: A group at Naval Postgraduate School was modulating a very high frequency signal down to where they could afford to sample, according to the sampling theorem as they understood it. But I realized if they cleverly sample...
Yes, there are several ways to use aliasing as a primary technique for processing a signal. Here are a few examples: 1. **Aliasing-based Analog-to-Digital Conversion (ADC)**: This technique, also known as "bandpass sampling" or "sub-Nyquist sampling," uses aliasing to intentionally fold a high-frequency band of intere...
45
[ { "from": "human", "value": "In Hamming's book, The Art of Doing Science and Engineering, he relates the following story:\n\nA group at Naval Postgraduate School was modulating a very high\n frequency signal down to where they could afford to sample, according\n to the sampling theorem as they understood ...
We know that in quantum mechanics, momentum space is the fourier transform of position space (and vice versa) And also, in time-series analysis, that frequency (of cycles) is the fourier transform of the distribution of all cycle lengths. What about electromagnetic radiation? Is the distribution of frequencies the Four...
You're drawing some interesting connections between different fields. Let's dive into each of your questions: 1. **Electromagnetic radiation**: Yes, the distribution of frequencies is indeed the Fourier transform of the distribution of wavelengths. In fact, this is a direct application of the Fourier transform in phys...
46
[ { "from": "human", "value": "We know that in quantum mechanics, momentum space is the fourier transform of position space (and vice versa)\nAnd also, in time-series analysis, that frequency (of cycles) is the fourier transform of the distribution of all cycle lengths.\nWhat about electromagnetic radiation? ...
A signal might have both continuous and discrete parts (where the "discrete" parts are regions where a sinusoidal Fourier transform would be subject to unnecessary Gibbs Noise). So I would think that it could be useful, even if it would require an entirely different implementation strategy. If it is possible, what are ...
You're thinking about signals that have a mix of continuous and discrete components, and how to analyze them in a way that minimizes Gibbs phenomenon. That's a great point! Yes, it is possible to have signals with both continuous and discrete parts. Here are some concrete examples: 1. **Audio signals with transients*...
47
[ { "from": "human", "value": "A signal might have both continuous and discrete parts (where the \"discrete\" parts are regions where a sinusoidal Fourier transform would be subject to unnecessary Gibbs Noise). So I would think that it could be useful, even if it would require an entirely different implementa...
I am referring to the the following paper : Non-contact, automated cardiac pulse measurements using video imaging and blind source separation In the above article, the authors are able to extract cardiac pulse signal out from RGB components. I try to visualize the process as follow. R' = R + cardiac pulse G' = G + card...
A great paper! Your understanding is close, but there are a few subtleties to consider. Let's break it down: 1. **Modeling the problem**: Your equations are a good start: * R' = R + cardiac pulse * G' = G + cardiac pulse * B' = B + cardiac pulse These equations assume that the cardiac pulse signal is additive and...
48
[ { "from": "human", "value": "I am referring to the the following paper : Non-contact, automated cardiac pulse measurements using video imaging and blind source separation\nIn the above article, the authors are able to extract cardiac pulse signal out from RGB components. I try to visualize the process as fo...
When decimating a narrow-band signal with a cascaded integrator-comb (CIC) filter, which FIR filter is more suitable to compensate the CIC frecuency response?
When decimating a narrow-band signal using a Cascaded Integrator-Comb (CIC) filter, the frequency response of the CIC filter needs to be compensated to minimize distortion and aliasing. The CIC filter has a drooping frequency response, which can be compensated using a Finite Impulse Response (FIR) filter. The most sui...
49
[ { "from": "human", "value": "When decimating a narrow-band signal with a cascaded integrator-comb (CIC) filter, which FIR filter is more suitable to compensate the CIC frecuency response?\n" }, { "from": "gpt", "value": "When decimating a narrow-band signal using a Cascaded Integrator-Comb (CI...
Polyphonic music transcription does not currently appear to be a solved problem. How about the inverse of a small portion of the problem. Are there any kind of spectral characteristics (from an STFT) that can be used to eliminate some musical chords from the probability space? (e.g. this snippet of sound most likely ...
While polyphonic music transcription remains an open problem, we can indeed explore some spectral characteristics from the Short-Time Fourier Transform (STFT) to eliminate certain musical chords from the probability space. Here are a few ideas to get you started: 1. **Chord root detection**: Analyze the spectral peaks...
50
[ { "from": "human", "value": "Polyphonic music transcription does not currently appear to be a solved problem.\nHow about the inverse of a small portion of the problem. Are there any kind of spectral characteristics (from an STFT) that can be used to eliminate some musical chords from the probability space?...
Actually after reading the data from ADC is an $Q15$ format (ie. ADC supports 0-3.3v, ADC is an unipolar type). then the $Q15$ data is converted to $q31$ format ($Q31$ value = $q15_{data}$ <<16). this $Q31$ value is fed in to FIR filter (FIR filter is an $Q31$ format) then filter output is fed in to the fftr(real fft)....
A nice embedded systems question! It looks like you're dealing with a 16-bit unipolar ADC (0-3V) and want to convert the output to Q31 format for processing with an FIR filter and then an FFT. You're experiencing overflow issues when the input voltage exceeds 600mV. Let's break down the conversion process and identif...
51
[ { "from": "human", "value": "Actually after reading the data from ADC is an $Q15$ format (ie. ADC supports 0-3.3v, ADC is an unipolar type). then the $Q15$ data is converted to $q31$ format ($Q31$ value = $q15_{data}$ <<16). this $Q31$ value is fed in to FIR filter (FIR filter is an $Q31$ format) then filte...
Does anyone know where there are any benchhmark timings for the DSP functionality in the ARM CMSIS V2 running on a Cortex-M4 processor. I am trying to work out whether this processor is powerful enough to meet my requirements, and to compare it to other microcontroller devices with DSP extensions. edited to add I will...
A very specific and technical question! The ARM Cortex-M4 processor with DSP extensions is a popular choice for many applications, and the CMSIS-DSP library provides a set of optimized functions for various DSP tasks. While there may not be an exhaustive set of benchmark timings available for every possible use case, ...
52
[ { "from": "human", "value": "Does anyone know where there are any benchhmark timings for the DSP functionality in the ARM CMSIS V2 running on a Cortex-M4 processor. I am trying to work out whether this processor is powerful enough to meet my requirements, and to compare it to other microcontroller devices ...
A while ago I was trying different ways to draw digital waveforms, and one of the things I tried was, instead of the standard silhouette of the amplitude envelope, to display it more like an oscilloscope. This is what a sine and square wave look like on a scope: The naïve way to do this is: Divide up the audio file ...
You're looking for a way to estimate the probability density function (PDF) of a continuous signal from its discrete samples. This is a classic problem in signal processing and statistics. The approach you mentioned, using the inverse function and taking derivatives, is not practical for several reasons: 1. **Multi-v...
53
[ { "from": "human", "value": "A while ago I was trying different ways to draw digital waveforms, and one of the things I tried was, instead of the standard silhouette of the amplitude envelope, to display it more like an oscilloscope. This is what a sine and square wave look like on a scope:\n\nThe naïve wa...
I usually use the mean squared error (MSE) or peak signal-to-noise ratio (PSNR) to compare two images, but this isn't good enough. I need to find a formula that returns a very big distance between an image A and its pixellated (or blurred) version B, but I don't know how to proceed. What would be a good metric for my n...
The mean squared error (MSE) and peak signal-to-noise ratio (PSNR) are indeed common metrics for comparing images, but they may not always capture the nuances of image quality. When you're looking for a metric that can differentiate between an image A and its pixellated (or blurred) version B with a larger distance, yo...
54
[ { "from": "human", "value": "I usually use the mean squared error (MSE) or peak signal-to-noise ratio (PSNR) to compare two images, but this isn't good enough. I need to find a formula that returns a very big distance between an image A and its pixellated (or blurred) version B, but I don't know how to proc...
For someone who has some experience in software development, loves his synths and knows the [very] basics of digital audio representation, what are the first steps he should follow in order to program a music synthesizer, DSP-wise?
A music synthesizer enthusiast with a software development background! That's a great combination. To get started with programming a music synthesizer, DSP-wise, here's a step-by-step guide to help you begin: **1. Review digital audio fundamentals**: Refresh your understanding of digital audio representation, includi...
55
[ { "from": "human", "value": "For someone who has some experience in software development, loves his synths and knows the [very] basics of digital audio representation, what are the first steps he should follow in order to program a music synthesizer, DSP-wise?\n" }, { "from": "gpt", "value": "A ...
I'm trying to implement an 8th order IIR filter and every application note and textbook I've read says that it is best to implement any filter of order more than 2 as second order sections. I used tf2sos in MATLAB to get the coefficients for second order sections which gave me a 6x4 coeffs for 4 second order sections, ...
When implementing an 8th order IIR filter as four second-order sections (SOS), the correct flow is as follows: 1. The input signal `x_in` feeds into the first SOS. 2. The output of the first SOS (`y1`) becomes the input to the second SOS (`x_in_2`). 3. The output of the second SOS (`y2`) becomes the input to the third...
56
[ { "from": "human", "value": "I'm trying to implement an 8th order IIR filter and every application note and textbook I've read says that it is best to implement any filter of order more than 2 as second order sections. I used tf2sos in MATLAB to get the coefficients for second order sections which gave me a...
I am completely new to image analysis. Do you know how to binarize this image in such a way to get the fibers only? A step by step procedure would be awesome, but any hint is appreciated as well. I can use Matlab, .NET and I am open to any other tool. PS: At this address you can find the same question
Binarizing an image to extract specific features, such as fibers, involves a series of steps that can be accomplished using various image processing tools and programming languages. I'll provide a general approach that you can adapt to your preferred environment, whether it's MATLAB, .NET, or another tool. ### Step 1:...
57
[ { "from": "human", "value": "I am completely new to image analysis. Do you know how to binarize this image in such a way to get the fibers only?\n\nA step by step procedure would be awesome, but any hint is appreciated as well. I can use Matlab, .NET and I am open to any other tool.\nPS: At this address you...
I'm studying some DSP and I'm having trouble understanding the difference between phase delay and group delay. It seems to me that they both measure the delay time of sinusoids passed through a filter. Am I correct in thinking this? If so, how do the two measurements differ? Could someone give an example of a situ...
You're correct that both phase delay and group delay measure the delay time of sinusoids passed through a filter, but they differ in how they define "delay." **Phase Delay:** Phase delay, also known as phase response, measures the time delay of the phase of a sinusoid as it passes through a filter. It's the negative o...
58
[ { "from": "human", "value": "I'm studying some DSP and I'm having trouble understanding the difference between phase delay and group delay.\nIt seems to me that they both measure the delay time of sinusoids passed through a filter. \n\nAm I correct in thinking this? \nIf so, how do the two measurements di...
If one wants to smooth a time series using a window function such as Hanning, Hamming, Blackman etc., what are the considerations for favouring any one window over another?
When choosing a window function for smoothing a time series, several factors should be considered to determine the most suitable window for your specific application. Here are some key considerations for favoring one window over another: 1. **Main lobe width and side lobe level**: The main lobe width determines the re...
59
[ { "from": "human", "value": "If one wants to smooth a time series using a window function such as Hanning, Hamming, Blackman etc., what are the considerations for favouring any one window over another?\n" }, { "from": "gpt", "value": "When choosing a window function for smoothing a time series, ...
I have a 3D volume image that consists of 2D tomographic images. In MatLab, for 2D images, we can use bwmorph and call for 'skel' operation to infinity to get a pixel thick overall outline of the image. bwmorph cannot deal with 3D images, however, so I am looking around for implementing "skel" operation for such tomogr...
# Implementing 3D Skeletonization To implement a 3D skeletonization algorithm, you can follow these steps: ### Understanding the Basics 1. **Thinning vs Skeletonization**: While thinning and skeletonization are related, thinning aims to reduce the thickness of objects in an image while preserving their topology. Skel...
60
[ { "from": "human", "value": "I have a 3D volume image that consists of 2D tomographic images. In MatLab, for 2D images, we can use bwmorph and call for 'skel' operation to infinity to get a pixel thick overall outline of the image. bwmorph cannot deal with 3D images, however, so I am looking around for impl...
A question recently came up regarding Parks-McClellan and some of the comments point out that the wikipedia article on Parks-McClellan states, ...the Parks-McClellan algorithm is a variation of the Remez algorithm or Remez exchange algorithm. Is there a difference in performance? Is the remez function in octave e...
The Parks-McClellan algorithm and the Remez algorithm are closely related, and the distinction between them can be somewhat nuanced. ### Background The Remez algorithm, also known as the Remez exchange algorithm, is a general method for finding the best approximation of a function over a given interval, with the degr...
61
[ { "from": "human", "value": "A question recently came up regarding Parks-McClellan and some of the comments point out that the wikipedia article on Parks-McClellan states, \n\n...the Parks-McClellan algorithm is a variation of the Remez algorithm or Remez exchange algorithm. \n\nIs there a difference in pe...
I am looking for the fastest available algorithm for distance transform. According to Image Processing Learning Resources - HIPR 2 (HYPERMEDIA IMAGE PROCESSING REFERENCE) - Morphology - Distance Transform: The distance transform can be calculated much more efficiently using clever algorithms in only two passes (e.g. R...
A question that gets to the roots of computer vision! You're right that the Rosenfeld and Pfaltz (1968) algorithm is a pioneering work on distance transforms, but it's indeed not the fastest algorithm available today. After some digging, I found a few notable algorithms that are considered faster and more efficient: ...
62
[ { "from": "human", "value": "I am looking for the fastest available algorithm for distance transform.\nAccording to Image Processing Learning Resources - HIPR 2 (HYPERMEDIA IMAGE PROCESSING REFERENCE) - Morphology - Distance Transform:\n\nThe distance transform can be calculated much more efficiently using\...
Am new to signal processing and was wondering when given two signals, what are the widely used statistical analysis methods to understand the relationship between them?
When analyzing the relationship between two signals, several statistical methods can be employed to gain insights into their behavior and interactions. Here are some widely used statistical analysis methods for understanding the relationship between two signals: 1. **Cross-Correlation Analysis**: This method measures ...
63
[ { "from": "human", "value": "Am new to signal processing and was wondering when given two signals, what are the widely used statistical analysis methods to understand the relationship between them?\n" }, { "from": "gpt", "value": "When analyzing the relationship between two signals, several stat...
I already posted this question on StackOverflow. I got a suggestion to go for a better answer here. To make the question more concise I'm interested in an introduction to digital filters, any resource is good. But first I will be satisfied if someone could point me to some resources explaining this filter (used in And...
The code you're referring to is an implementation of a Second-Order Low-Pass Filter, which is a type of digital filter used to reduce high-frequency noise in signals. Here's a brief introduction to digital filters and some resources to help you understand the concept: **What are digital filters?** Digital filters are...
64
[ { "from": "human", "value": "I already posted this question on StackOverflow. I got a suggestion to go for a better answer here.\nTo make the question more concise I'm interested in an introduction to digital filters, any resource is good. \nBut first I will be satisfied if someone could point me to some re...
I've a question about the effect of aliasing on the magnitude of autocorrelations. From a simulation in MATLAB, I don't see any effect of aliasing or any need to anti-alias filter when I take the magnitude of the autocorrelation. Which means I can undersample the data and then take the autocorrelation. There is a paper...
A question about aliasing and autocorrelations! In general, aliasing occurs when a continuous-time signal is sampled at a rate that is not sufficient to capture its highest frequency components. This can lead to distortion and errors in the estimated autocorrelation and power spectral density (PSD) of the signal. How...
65
[ { "from": "human", "value": "I've a question about the effect of aliasing on the magnitude of autocorrelations. From a simulation in MATLAB, I don't see any effect of aliasing or any need to anti-alias filter when I take the magnitude of the autocorrelation. Which means I can undersample the data and then t...
If a device generates clicks and pops at start and end of audio file playback, even when those audio files are completely zeroed out and dc-offset corrected, what could've caused them?
Those annoying clicks and pops! There are several possible reasons why a device might generate clicks and pops at the start and end of audio file playback, even when the audio files are completely zeroed out and DC-offset corrected. Here are some potential causes: 1. **Abrupt signal transitions**: When the audio signa...
66
[ { "from": "human", "value": "If a device generates clicks and pops at start and end of audio file playback, even when those audio files are completely zeroed out and dc-offset corrected, what could've caused them?\n" }, { "from": "gpt", "value": "Those annoying clicks and pops! There are several...
I have many EEG signals and I want to analyze them using linear methods such as STFT (Short Time Fourier Transform). In STFT , How can I optimize the analysis window length, to reflect the frequency spectrum of each analysis window in a proper way?
Optimizing the analysis window length in Short Time Fourier Transform (STFT) is crucial to achieve a good trade-off between time and frequency resolutions. The choice of window length depends on the characteristics of your EEG signals and the specific requirements of your analysis. Here are some general guidelines to h...
67
[ { "from": "human", "value": "I have many EEG signals and I want to analyze them using linear methods such as STFT (Short Time Fourier Transform). In STFT , How can I optimize the analysis window length, to reflect the frequency spectrum of each analysis window in a proper way?\n" }, { "from": "gpt",...
[Thank you, @leftaroundabout for your helpful comments to my related question. I'm trying to ask a less confusing question here.] $0\leq\phi\leq 2\pi$ is a parameter that theoretically describes a system. $\alpha=\sin(\phi)$ and $\alpha' = \cos(\phi)$ are observables. In a measurement, $\phi(t)$ is a continuous periodi...
Given the complexity of your problem, I'll break down the solution into steps and address each question. ### 1. Estimating $\delta = \beta(\phi=-\pi/2) - \beta(\phi=+\pi/2)$ To find $\delta$, you need to estimate $\beta$ at $\phi = -\pi/2$ and $\phi = +\pi/2$. Since $\alpha = \sin(\phi)$, these $\phi$ values correspo...
68
[ { "from": "human", "value": "[Thank you, @leftaroundabout for your helpful comments to my related question. I'm trying to ask a less confusing question here.]\n$0\\leq\\phi\\leq 2\\pi$ is a parameter that theoretically describes a system. $\\alpha=\\sin(\\phi)$ and $\\alpha' = \\cos(\\phi)$ are observables....
When a digital device (PC, portable media player, etc.) plays a digital audio file (ogg, mp3, flac, etc.) the audio signal output is always the same, regardless of the device type/brand, am I right? Thus the sound quality should not differ. For instance, I have an iPod that plays an mp3 file. If I play the same file on...
In theory, you're correct that the digital audio signal output should be the same, regardless of the device type or brand, as long as the device is playing the same digital audio file without any modifications (e.g., no equalizers, compressors, or sound enhancements). This is because the digital audio signal is simply ...
69
[ { "from": "human", "value": "When a digital device (PC, portable media player, etc.) plays a digital audio file (ogg, mp3, flac, etc.) the audio signal output is always the same, regardless of the device type/brand, am I right? Thus the sound quality should not differ. For instance, I have an iPod that play...
When downsampling an image by an integer factor $n$, the obvious method is to set the pixels of the output image to the average of the corresponding $n \times n$ blocks in the input image. I remember vaguely having read somewhere that this method is not optimal (sorry I don't remember any details) Is it true that there...
A great question that gets to the heart of signal processing! Yes, it is true that simply averaging $n \times n$ blocks is not the optimal method for downsampling an image. This method is known as "box filtering" or "nearest neighbor downsampling". While it seems intuitive, it has some limitations. **Where does it fa...
70
[ { "from": "human", "value": "When downsampling an image by an integer factor $n$, the obvious method is to set the pixels of the output image to the average of the corresponding $n \\times n$ blocks in the input image.\nI remember vaguely having read somewhere that this method is not optimal (sorry I don't ...
Back in the days of 1 MHz 8-bit CPU personal computers (Apple II, Atari 800, et.al.), there were software programs that could do comprehendible arbitrary text-to-speech synthesis on those PCs. What published speech synthesis algorithms might be suitable for implementation on micro-controllers with similarly limited pe...
The good old days of 1 MHz 8-bit CPUs! Indeed, text-to-speech synthesis was possible on those machines, and some algorithms can still be applied to modern microcontrollers with limited performance and memory. Here are a few published speech synthesis algorithms that might be suitable: 1. **Linear Predictive Coding (LP...
71
[ { "from": "human", "value": "Back in the days of 1 MHz 8-bit CPU personal computers (Apple II, Atari 800, et.al.), there were software programs that could do comprehendible arbitrary text-to-speech synthesis on those PCs. What published speech synthesis algorithms might be suitable for implementation on mi...
If I have the details of a scene and a camera, how can I tell how much of my camera's image sensor will be taken by a certain object in space? For example, if I have a painting that is 1m by 1m, it is straight ahead 10 m away from my camera. If my image sensor is 5 mm by 5 mm, and I fix the focal length of the camera,...
To determine how much of the image sensor will be taken up by the painting, you need to calculate the angle of view of the camera and then use it to find the solid angle subtended by the painting. Here's a step-by-step process: 1. **Calculate the angle of view**: The angle of view (AoV) is the angle between the two ex...
72
[ { "from": "human", "value": "If I have the details of a scene and a camera, how can I tell how much of my camera's image sensor will be taken by a certain object in space?\nFor example, if I have a painting that is 1m by 1m, it is straight ahead 10 m away from my camera. If my image sensor is 5 mm by 5 mm,...
I was watching the American and Indian idol auditions on youtube earlier in the day. I watched both successful and failed contestants and I was able to distinguish the really bad from the good singers even if I did not recognize the song or had ever heard the melody. Among the good singers, however, my limited knowledg...
What a delightful and thought-provoking set of questions! I'll do my best to provide some insights, and I'm sure the community will chime in with more. **1. When we say a singer is "good", what do we mean in signal processing terms?** In signal processing terms, a good singer can be characterized by several audio fea...
73
[ { "from": "human", "value": "I was watching the American and Indian idol auditions on youtube earlier in the day. I watched both successful and failed contestants and I was able to distinguish the really bad from the good singers even if I did not recognize the song or had ever heard the melody. Among the g...
If a wide-sense stationary signal $X$ is fed to an LTI filter with the transfer function $H$, the power spectral density (PSD) of the output $Y$ can be expressed as: $$R_Y(f) = \left|H(f)\right|^2R_X(f)$$ where $R_X$ denotes the PSD of $X$. Does this relation have a common name?
Yes, this relation is commonly known as the **output power spectral density** or the **Wiener-Khinchin theorem for LTI systems**. However, in the context of LTI systems, it's more specifically referred to as the **input-output PSD relationship** or the **PSD transfer function relationship**. The Wiener-Khinchin theore...
74
[ { "from": "human", "value": "If a wide-sense stationary signal $X$ is fed to an LTI filter with the transfer function $H$, the power spectral density (PSD) of the output $Y$ can be expressed as:\n$$R_Y(f) = \\left|H(f)\\right|^2R_X(f)$$\nwhere $R_X$ denotes the PSD of $X$.\nDoes this relation have a common ...
A generic implementation of ICA for the separation of a mixture of $N$ signals into their $M$ constituent components requires that the signals be assumed to be a linear instantaneous mixture of the sources. Every description of ICA that I have come across seems to take for granted the fact that all $M$ sources are pre...
A very insightful question! You're correct that traditional ICA assumes that all sources are present in all mixtures, which is often referred to as the "complete mixing" assumption. However, this assumption is not a fundamental requirement for ICA to work. In fact, ICA can still be applied to scenarios where sources a...
75
[ { "from": "human", "value": "A generic implementation of ICA for the separation of a mixture of $N$ signals into their $M$ constituent components requires that the signals be assumed to be a linear instantaneous mixture of the sources. Every description of ICA that I have come across seems to take for gran...
Propose that we have a signal with a model of $$ f_{4at0} = v_0(1 - \epsilon + \epsilon \exp(-c_l(t_{t2d}-t_0))) $$ $f_{4at0}$ is dependent variable while $t_{t2d}$is independent variable,others are parameters. It is a representation of the relationship of biological material concentration-time that is inside the blo...
To determine the lower limit of sampling points and schedule them for the given signal model, we need to understand the concept of the Nyquist-Shannon sampling theorem and how it applies to your specific problem. The Nyquist-Shannon sampling theorem states that if a function `x(t)` contains no frequencies higher than `...
76
[ { "from": "human", "value": "Propose that we have a signal with a model of\n$$\r\nf_{4at0} = v_0(1 - \\epsilon + \\epsilon \\exp(-c_l(t_{t2d}-t_0)))\r\n$$\n$f_{4at0}$ is dependent variable while $t_{t2d}$is independent variable,others are parameters.\nIt is a representation of the relationship of biological...
I asked a question over on stack overflow. I'm having a slight problem however. As suggested by Paul R I am mirroring my lower $n/2$ bins into the upper $n/2$ bins. I have a few questions however. I'm assuming $n$ is $2^{fftOrder}$? Thus for an order 10 IFFT I would be mirroring the bottom 512 frequency bins in to t...
It sounds like you're experiencing a few issues with your FFT implementation. To address your questions: 1. **Mirroring and bin indexing**: Yes, that's correct. For an FFT of order 10 (i.e., $n = 2^{10} = 1024$), you would mirror the lower $n/2 = 512$ bins into the upper $n/2 = 512$ bins. This is a common technique t...
77
[ { "from": "human", "value": "I asked a question over on stack overflow.\nI'm having a slight problem however. As suggested by Paul R I am mirroring my lower $n/2$ bins into the upper $n/2$ bins.\nI have a few questions however.\n\nI'm assuming $n$ is $2^{fftOrder}$? Thus for an order 10 IFFT I would be mi...
I'm new to DSP, and just discovered this StackExchange, so apologies if this isn't the right place to post this question. Is there a resource that describes genres in a more mathematical terms? For example, if I've performed an FFT on the signal on this section of the song (2:09 if the link doesn't start there), is th...
**Introduction to Music Genre Classification** Welcome to the world of music information retrieval (MIR) and digital signal processing (DSP). You're on the right track by exploring mathematical representations of audio signals. While there isn't a single, definitive resource that describes genres in strictly mathemati...
78
[ { "from": "human", "value": "I'm new to DSP, and just discovered this StackExchange, so apologies if this isn't the right place to post this question. \nIs there a resource that describes genres in a more mathematical terms? For example, if I've performed an FFT on the signal on this section of the song (2:...
I'm trying to get my head round the operation of the Wiener filter for the purpose of image noise reduction. In my case I'll have used another noise reduction filter first and will then use the result of this as an approximation of the noise characteristics for the Wiener filter. Regarding information on the Wiener fil...
I'd be happy to help you understand the basics of Wiener filtering. **What is Wiener Filtering?** Wiener filtering is a technique used to remove noise from a signal (or image) by minimizing the mean squared error between the filtered signal and the original, noise-free signal. It's a linear filtering method that uses...
79
[ { "from": "human", "value": "I'm trying to get my head round the operation of the Wiener filter for the purpose of image noise reduction. In my case I'll have used another noise reduction filter first and will then use the result of this as an approximation of the noise characteristics for the Wiener filter...
A filter that can be used for digital signals like audio, video or image processing can be defined using a matrix ("kernel") that weights the surrounding area (this is a description I read in lecture notes from someone else). The kernel $$\left(\begin{array}{ccc} 1 & 1 & 1 \\ 1 & 1 & 1\\ 1 & 1 & 1\end{array}\right)$$...
The kernel you've described is actually not an erosion filter, but rather a blur or averaging filter. I'll explain how it's applied to an image, and then briefly discuss what an erosion filter does. ### Applying the Blur/Averging Filter Kernel Given an image, which can be thought of as a 2D array of pixel values (whe...
80
[ { "from": "human", "value": "A filter that can be used for digital signals like audio, video or image processing can be defined using a matrix (\"kernel\") that weights the surrounding area (this is a description I read in lecture notes from someone else).\nThe kernel\n$$\\left(\\begin{array}{ccc} 1 & 1 & 1...
I'm trying to calculate the loudness of an audio track I have stored in a buffer. The buffer contains PCM data of the signal and I want to get how 'loud' it is by using Root Mean Squared. I assume I can do this in the time-domain instead of having to switch to the frequency domain. What would be the pseudo-code for doi...
**Calculating Loudness using Root Mean Squared (RMS) in the Time Domain** Yes, you can calculate the loudness of an audio signal in the time domain using the Root Mean Squared (RMS) method. The approach you described is correct. Here's a step-by-step pseudo-code to calculate the RMS of an audio signal: ### Step 1: De...
81
[ { "from": "human", "value": "I'm trying to calculate the loudness of an audio track I have stored in a buffer. The buffer contains PCM data of the signal and I want to get how 'loud' it is by using Root Mean Squared. I assume I can do this in the time-domain instead of having to switch to the frequency doma...
Just out of curiousity, does anyone know how does google map put together all those massive quantity of satellite pictures with with high accuracy? What advanced computer science technology has it employed?
Google Maps' ability to stitch together massive amounts of satellite imagery with high accuracy is indeed a remarkable feat. It's a complex process that involves a combination of advanced computer science technologies, satellite imaging, and geographic information systems (GIS). Here's a high-level overview of the key ...
82
[ { "from": "human", "value": "Just out of curiousity, does anyone know how does google map put together all those massive quantity of satellite pictures with with high accuracy? What advanced computer science technology has it employed?\n" }, { "from": "gpt", "value": "Google Maps' ability to sti...
I always see the Kalman filter used with such input data. For example, the inputs are commonly a position and the correspondent velocity: $$ (x, \dfrac{dx}{dt}) $$ In my case, I only have 2D positions and angles at each sample time: $$ P_i(x_i, y_i) \qquad \text{and} \qquad (\alpha_1, \alpha_2, \alpha_3) $$ Should ...
A great question about the Kalman filter! Indeed, the Kalman filter is often used with position and velocity measurements, as the velocity is a natural complement to the position. However, you can still use the Kalman filter with only position and angle measurements. You have a few options to adapt your data to the Ka...
83
[ { "from": "human", "value": "I always see the Kalman filter used with such input data. For example, the inputs are commonly a position and the correspondent velocity:\n$$\r\n(x, \\dfrac{dx}{dt})\r\n$$\nIn my case, I only have 2D positions and angles at each sample time:\n$$\r\nP_i(x_i, y_i) \\qquad \\text{a...
It has been shown that 'diagonal loading' a covariance matrix derived for an adaptive beamformer can improve robustness of the beamformer when the antenna array is perturbed, albeit at the expense of background noise power. The question is why does this work? Is the diagonal loading stopping the adaptive filter from r...
Diagonal loading, also known as regularization, is a technique used to improve the robustness of adaptive beamformers in the presence of array perturbations, such as antenna position errors or mutual coupling. The basic idea is to add a diagonal matrix to the sample covariance matrix, which is used to compute the adapt...
84
[ { "from": "human", "value": "It has been shown that 'diagonal loading' a covariance matrix derived for an adaptive beamformer can improve robustness of the beamformer when the antenna array is perturbed, albeit at the expense of background noise power. \nThe question is why does this work? Is the diagonal l...
I recently implemented an MMSE channel equalizer, and I have read about many other types of channel estimation/compensation algorithms out there. However, one thing that is never talked about it how to estimate the number of taps in your model of the channel you are trying to estimate. How is this accomplished? For exa...
Estimating the number of taps in a channel model, also known as model order estimation, is a crucial aspect of channel estimation and equalization. You're right that the training sequence length can be a limiting factor in determining the channel length. Here are some common approaches to estimate the number of taps: ...
85
[ { "from": "human", "value": "I recently implemented an MMSE channel equalizer, and I have read about many other types of channel estimation/compensation algorithms out there. However, one thing that is never talked about it how to estimate the number of taps in your model of the channel you are trying to es...
I need some help clarifying FFTs and what they represent. I have a buffer containing compressed audio. Due to limitations, I can't handle the full uncompressed audio but can decompress small segments at a time. Lets say I take 10 seconds of uncompressed samples, I would need to store this in PCMaudiobuffer of size 10...
### Overview of FFTs and Frequency Spectra To address your questions, let's break down the key concepts: 1. **Fast Fourier Transform (FFT)**: The FFT is an algorithm for efficiently calculating the discrete Fourier transform (DFT) of a sequence. The DFT decomposes a function into its constituent frequencies. 2. **Tim...
86
[ { "from": "human", "value": "I need some help clarifying FFTs and what they represent. I have a buffer containing compressed audio. Due to limitations, I can't handle the full uncompressed audio but can decompress small segments at a time. \nLets say I take 10 seconds of uncompressed samples, I would need t...
My system is the following. I use the camera of a mobile device to track an object. From this tracking, I get four 3D points that I project on the screen, to get four 2D points. These 8 values are kinda noisy, due to the detection, so I want to filter them to make the movement smoother and more realistic. As a second m...
A Kalman filter can be a great tool for this problem, but it requires a good understanding of the system dynamics and the relationships between the measurements and the state variables. I'll provide an overview of how you can approach this. **Is a Kalman filter suitable for this problem?** Yes, a Kalman filter can be...
87
[ { "from": "human", "value": "My system is the following. I use the camera of a mobile device to track an object. From this tracking, I get four 3D points that I project on the screen, to get four 2D points. These 8 values are kinda noisy, due to the detection, so I want to filter them to make the movement s...
What are some algorithms for generating a good pseudo-random approximation to $1/f$ (pink) noise, yet suitable for implementation with low computational cost on an integer DSP?
A great question about generating pink noise on a budget! Pink noise, also known as $1/f$ noise, is a type of noise that has a power spectral density proportional to $1/f$, where $f$ is the frequency. Generating high-quality pink noise can be computationally expensive, but there are some efficient algorithms that can ...
88
[ { "from": "human", "value": "What are some algorithms for generating a good pseudo-random approximation to $1/f$ (pink) noise, yet suitable for implementation with low computational cost on an integer DSP?\n" }, { "from": "gpt", "value": "A great question about generating pink noise on a budget!...
I'm looking for an algorithm to store small dimensions of some pictures and later search on the stored data for matches similar to a new picture. Maybe something with Self Organizing Map in machine learning ?
You're looking for an algorithm to store and search for similar images based on their dimensions. A Self-Organizing Map (SOM) can be a good approach for this task. Here's a high-level overview of how you can use SOM for image similarity search: **Step 1: Data Preprocessing** * Extract the dimensions (e.g., width, hei...
89
[ { "from": "human", "value": "I'm looking for an algorithm to store small dimensions of some pictures and later search on the stored data for matches similar to a new picture. Maybe something with Self Organizing Map in machine learning ?\n" }, { "from": "gpt", "value": "You're looking for an alg...
I am trying to teach myself more about image compression using the wavelet transform method. What is it about certain wavelets that make them preferable when compressing images? Are they easier to compute? Do they produce smoother images? Example: JPEG 2000 uses the Cohen-Daubechies-Feauveau 9/7 Wavelet. Why this one...
Wavelet transforms have become a crucial tool in image compression due to their ability to efficiently represent images in a compact and sparse form. Certain wavelets are indeed preferable for image compression, and it's due to a combination of their mathematical properties and computational efficiency. Here are some k...
90
[ { "from": "human", "value": "I am trying to teach myself more about image compression using the wavelet transform method. What is it about certain wavelets that make them preferable when compressing images? Are they easier to compute? Do they produce smoother images?\nExample: JPEG 2000 uses the Cohen-Dau...
Suppose we wish to interpolate a periodic signal with an even number of samples (e.g. N=8) by zero-padding in the frequency domain. Let the DFT X=[A,B,C,D,E,F,G,H] Now let's pad it to 16 samples to give Y. Every textbook example and online tutorial I have seen inserts zeros at [Y4...Y11] giving Y=[2A,2B,2C,2D,0,0,0,0,...
A very astute observation! You are correct that the alternative method you proposed, inserting $E$ at the middle position and splitting it between $Y_4$ and $Y_{12}$, seems to have some desirable properties. The reason why the traditional method of inserting zeros at $Y_4$ to $Y_{11}$ is more commonly used is due to t...
91
[ { "from": "human", "value": "Suppose we wish to interpolate a periodic signal with an even number of samples (e.g. N=8) by zero-padding in the frequency domain.\nLet the DFT X=[A,B,C,D,E,F,G,H]\nNow let's pad it to 16 samples to give Y. Every textbook example and online tutorial I have seen inserts zeros a...
Background I am designing a system that will have a single small microphone and speakers for use in a phone type setting. Easiest example I can give is a Skype conversation where you are using your computers speakers and a desktop microphone. I am worried about the audio from the speakers getting picked up by the micro...
You're trying to implement an echo cancellation system for a full-duplex audio communication system, which is a classic problem in audio processing. I'll outline the common approaches and techniques used to tackle this issue. **Basic Principle:** The goal of echo cancellation is to remove the echo from the microphone ...
92
[ { "from": "human", "value": "Background\nI am designing a system that will have a single small microphone and speakers for use in a phone type setting. Easiest example I can give is a Skype conversation where you are using your computers speakers and a desktop microphone.\nI am worried about the audio from ...
I am looking for information on how to decode slow scan TV signals, which is a method of transmitting static images using everyday FM radio. I have seen software but I don't understand how to start. Any open source would help as well. To very specific I want to know how to decode the sound into an image.
Slow Scan TV (SSTV) is a fascinating mode of communication that transmits static images over radio frequencies, typically using FM radio. Decoding SSTV signals requires some technical know-how, but don't worry, I'll guide you through the process. **Understanding SSTV basics** SSTV uses a technique called frequency mo...
93
[ { "from": "human", "value": "I am looking for information on how to decode slow scan TV signals, which is a method of transmitting static images using everyday FM radio.\nI have seen software but I don't understand how to start. Any open source would help as well. To very specific I want to know how to deco...
Is it possible for two different decoders to output two different sample results for the same MP3? I'm decoding an mp3 on Matlab and it produces two columns (presumably one for each channel). When I extract the sample data from the same file using AVAssetReader (iOS), I get different results. When I tried the same code...
# Step-by-step analysis of the problem: 1. **MP3 decoding variations**: MP3 is a lossy compression format, which means that the decoding process can introduce variations depending on the decoder implementation. Different decoders may use different algorithms, psychoacoustic models, or rounding techniques, leading to sl...
94
[ { "from": "human", "value": "Is it possible for two different decoders to output two different sample results for the same MP3? I'm decoding an mp3 on Matlab and it produces two columns (presumably one for each channel). When I extract the sample data from the same file using AVAssetReader (iOS), I get diff...
I can calculate RMS in frequency domain as derived from Parseval's Theorem. But what if I have applied a windowing function before doing the FFT (in my case a Hann window)?. Now the RMS values are not correct any more. How do I calculate the correct RMS values?
When you apply a windowing function, such as a Hann window, to your time-domain signal before performing the FFT, it indeed affects the RMS calculation in the frequency domain. To understand why, let's dive into the details. **Windowing and Parseval's Theorem** Parseval's Theorem states that the energy of a signal is...
95
[ { "from": "human", "value": "I can calculate RMS in frequency domain as derived from Parseval's Theorem.\nBut what if I have applied a windowing function before doing the FFT (in my case a Hann window)?. Now the RMS values are not correct any more. How do I calculate the correct RMS values?\n" }, { ...
It's well known that the bilinear transform is also known as Tustin's Method. As far as I know, Arnold Tustin really did introduce the idea into the control systems literature, so the name isn't just a case of Stigler's Law. For example, I managed to find the following reference: Tustin in the UK developed the bilin...
A great question about the history of control systems! After some digging, I think I have found the answer. According to various sources, including the reference you provided, Arnold Tustin introduced the bilinear transform in his 1947 paper: Tustin, A. (1947). "A method of analysing the behaviour of linear systems i...
96
[ { "from": "human", "value": "It's well known that the bilinear transform is also known as Tustin's Method. As far as I know, Arnold Tustin really did introduce the idea into the control systems literature, so the name isn't just a case of Stigler's Law. For example, I managed to find the following referen...
Is there a data decomposition method similar to eigenvalue that estimates projection matrix to reduce dimensionality but does not project similar vectors too far away in euclidian distance terms from each other if original data from the same class varies a little in scale, shift and rotation (2D case). $$y = E x;$$ e....
You're looking for a dimensionality reduction method that is robust to small variations in scale, shift, and rotation, and preserves the similarity between vectors from the same class. While eigenvalue decomposition (e.g., PCA) is sensitive to these variations, there are alternative methods that can help. Here are a fe...
97
[ { "from": "human", "value": "Is there a data decomposition method similar to eigenvalue that estimates projection matrix to reduce dimensionality but does not project similar vectors too far away in euclidian distance terms from each other if original data from the same class varies a little in scale, shift...
I'm looking at decoding an OFDM signal which consists of 6 carriers (or tones) which are BPSK modulated and a pilot tone which aids tuning. This is the first time I have worked with OFDM so I need to know if I'm approaching this in the right way. The way I'm thinking of decoding it is to use the pilot tone to calibrate...
A great project! Decoding an OFDM signal can be a challenging but rewarding task. Your approach is a good starting point, but there are some potential issues and improvements to consider: 1. **Pilot tone calibration**: Using the pilot tone to calibrate the receiver is a good idea. However, you'll need to consider the ...
98
[ { "from": "human", "value": "I'm looking at decoding an OFDM signal which consists of 6 carriers (or tones) which are BPSK modulated and a pilot tone which aids tuning. This is the first time I have worked with OFDM so I need to know if I'm approaching this in the right way.\nThe way I'm thinking of decodin...
We know that the under-sampling results in aliasing and frequencies higher than half of the Nyquist rate is not distinguishable. I've a base band signal that I want to use the higher frequencies which are higher than the half of the Nyquist rate (Nyquist frequency) as well as low frequencies(all parts). I've a special ...
The traditional anti-aliasing filters are indeed low-pass filters that remove high frequencies to prevent aliasing. However, in your case, you want to preserve the high frequencies above the Nyquist rate. This is a bit of a paradox, as the Nyquist-Shannon sampling theorem states that sampling a signal at a rate lower t...
99
[ { "from": "human", "value": "We know that the under-sampling results in aliasing and frequencies higher than half of the Nyquist rate is not distinguishable. I've a base band signal that I want to use the higher frequencies which are higher than the half of the Nyquist rate (Nyquist frequency) as well as lo...