# Tag Info

### How to implement a moving average in C without a buffer?

A moving average can be implemented recursively, but for an exact computation of the moving average you have to remember the oldest input sample in the sum (i.e. the ...
• 80.9k
Accepted

• 3,660

### Filtering Angular Measurements

Median filtering is non-linear, and pretty awesome about removing outliers. You just need to adjust the length of the filter based on the estimate of the frequency of the errored samples.
• 244

### Envelop detection with low sample rate?

Is the ADC sample-and-hold fast enough to even capture any envelope peaks or even half cycles? If not, all bets are off. If your ADC does have a fast enough capture time, then randomizing your ...
• 34.1k
Accepted

• 748
Accepted

### How to Apply Least Squares Estimation for Sparse Coefficient Estimation?

I am not entirely sure what matlab's LASSO routine does so I started with Ordinary Least Squares (OLS) and worked backwards. From an OLS perspective X1 as you have it won't work. You've got a ...
Accepted

### MATLAB: Implementing Least Squares Estimator for a Given Model

The equation you're trying to solve is $$\mathbf{y}=\mathbf{X}\mathbf{h},$$ where $\mathbf{h}$ is your unknown. The matrix $\mathbf{X}$ is going to have a time-shifted structure that reflects the ...
• 2,761

Only top scored, non community-wiki answers of a minimum length are eligible