Evaluating Stochastic Gradient with Random Grid

AI Thread Summary
The discussion focuses on evaluating the gradient of a random grid where each cell contains fluctuating values. The user initially applied the Euler formula but encountered issues with strong fluctuations in the gradient. They are considering using a five-point stencil method to mitigate these fluctuations but are uncertain about handling grid boundaries. A suggestion is made to use linear extrapolation for boundary values, such as setting u_{-1} to 2u_{0} - u_{1}. The conversation emphasizes the need for effective methods to manage gradient evaluation in random grids.
Heimdall
Messages
38
Reaction score
0
Hi,

I have a random grid, meaning that each cell consists of a random number. I need to evaluate the gradient.

I've tried to apply a basic Euler formula (u_(i+1) - u_(i-1))/2dx but since the values can fluctuate a lot, fluctuations are even stronger for the gradient...
I'm thinking about using a "smoother" method like a five point stencil, which could be better to avoid strong fluctuations... but then I can't find out how to deal with grid boundaries (for Euler method I use (u_(i+1)-u(i))/dx or (u_(i)-u_(i-1))/dx )

How would you do, is there a specific method for this kind of problem ?

Thanks a lot
 
Mathematics news on Phys.org
how to deal with grid boundaries
how about u_{-1}:=2u_{0}-u_{1}, etc? I mean (linear) extrapolation.
 
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...

Similar threads

Back
Top