.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples\plot_fbf.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_plot_fbf.py: ========================= Fractional Brownian field ========================= .. codeauthor:: Frédéric Richard This example shows how to simulate a fractional Brownian field with a prescribed Hurst index. .. note:: .. GENERATED FROM PYTHON SOURCE LINES 52-71 .. image:: /auto_examples/images/sphx_glr_plot_fbf_001.png :alt: Field simulation. :class: sphx-glr-single-img .. code-block:: default import numpy as np from afbf import tbfield N = 256 # Image size. H = 0.2 # Hurst index in (0, 1). # Define the field. Z = tbfield('fbf') # Change the parameter of the Hurst function. Z.hurst.ChangeParameters(np.array([[H]])) Z.NormalizeModel() # Simulate the field. z = Z.Simulate() # Display the simulation. z.Display() .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 7.591 seconds) .. _sphx_glr_download_auto_examples_plot_fbf.py: .. only :: html .. container:: sphx-glr-footer :class: sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_fbf.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_fbf.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_