Determining Likelihood of Divergance

  • Thread starter Thread starter Aston08
  • Start date Start date
  • Tags Tags
    Likelihood
AI Thread Summary
The discussion focuses on improving the method for determining the directional trend of a signal line to reduce false signals. Current logic relies on comparing recent data points, but it struggles with sensitivity to minor fluctuations. A suggestion is made to use a median filter, which effectively removes noise from spikes while preserving the overall signal. The user expresses gratitude for this recommendation, indicating it aligns closely with their needs. The conversation highlights the importance of refining signal processing techniques to enhance accuracy in trend analysis.
Aston08
Messages
21
Reaction score
0
Currently utilizing very simple logic in determining the directional trend of a signal line, and was hoping someone might be able to offer a suggestion as to a more effective method of filtering false signals.

As it stands the logic being used for determining the direction of a trend is if the prior data point's (generally 1-2) value are less than the current bar it signals an up trend and vice versus. The issue I am having is the sensitivity of the logic is such that tiny spikes aren't being completely smoothed out by the moving average.

Any suggestions on what might be a more effective way to qualify the variation's likelihood for divergance? Possibly a minimum threshold for slope or percentage change?

MovingAverage.jpg


The areas of issue are those circled in red ... the sharp transitions like the type highlighted by the blue arrow are more valid.


I would greatly appreciate any suggestions
 
Physics news on Phys.org
Welcome to PF, Aston08! :smile:

I recommend using a median filter.
It's perfect for removing spiked noise without changing the signal.

It means replacing each point by the middle value of the point and its neighbours.
 
Thanks for the help ...that was just about what I was looking for.
 
You're welcome! :)

I see you have another thread that seems similar.
I did not respond since I simply did not understand what you were saying and what you were asking.

Can it be that the median filter also helps you with that thread?
 
I was basically asking what type of math the issue most likely applied to...didn't get any responses so I posted it written a little differently here on the physics board.
 
Thread 'Gauss' law seems to imply instantaneous electric field propagation'
Imagine a charged sphere at the origin connected through an open switch to a vertical grounded wire. We wish to find an expression for the horizontal component of the electric field at a distance ##\mathbf{r}## from the sphere as it discharges. By using the Lorenz gauge condition: $$\nabla \cdot \mathbf{A} + \frac{1}{c^2}\frac{\partial \phi}{\partial t}=0\tag{1}$$ we find the following retarded solutions to the Maxwell equations If we assume that...
Maxwell’s equations imply the following wave equation for the electric field $$\nabla^2\mathbf{E}-\frac{1}{c^2}\frac{\partial^2\mathbf{E}}{\partial t^2} = \frac{1}{\varepsilon_0}\nabla\rho+\mu_0\frac{\partial\mathbf J}{\partial t}.\tag{1}$$ I wonder if eqn.##(1)## can be split into the following transverse part $$\nabla^2\mathbf{E}_T-\frac{1}{c^2}\frac{\partial^2\mathbf{E}_T}{\partial t^2} = \mu_0\frac{\partial\mathbf{J}_T}{\partial t}\tag{2}$$ and longitudinal part...
Thread 'A scenario of non uniform circular motion'
(All the needed diagrams are posted below) My friend came up with the following scenario. Imagine a fixed point and a perfectly rigid rod of a certain length extending radially outwards from this fixed point(it is attached to the fixed point). To the free end of the fixed rod, an object is present and it is capable of changing it's speed(by thruster say or any convenient method. And ignore any resistance). It starts with a certain speed but say it's speed continuously increases as it goes...
Back
Top