Skip to content

2d random field with mean=0 at each row of numbers and precision #213

Answered by MuellerSeb
pelyme asked this question in Q&A
Discussion options

You must be logged in to vote

Hey there,

this is a tough one. Setting mean=0.0 actually means, that the mean at each point for an ensemble of random fields converges to this given value. Under the assumption of ergodicity, the spatial mean should be near the given mean for a large enough realization.
You are further constraining this by requiring each row to have the given mean. With increasing length of the field, this should converge.

Only thing that we are providing is a transformation to force the generated field to have the given moments (mean, variance). But this will not help with each individual row:

import gstools as gs

x = y = range(100)

model = gs.Exponential(dim=2, len_scale=5)
srf = gs.SRF(model=model, m…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@pelyme
Comment options

Answer selected by MuellerSeb
Comment options

You must be logged in to vote
1 reply
@pelyme
Comment options

Comment options

You must be logged in to vote
2 replies
@MuellerSeb
Comment options

@pelyme
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants